Ticket #236: socket.diff

File socket.diff, 550 bytes (added by KO Myung-Hun, 14 years ago)

Patch for CMSG_NXTHDR

  • sys/socket.h

    diff -uNr  sys/socket.h.org sys/socket.h
    old new  
    387387        (((caddr_t)(cmsg) + (cmsg)->cmsg_len + sizeof(struct cmsghdr) > \
    388388            (mhdr)->msg_control + (mhdr)->msg_controllen) ? \
    389389            (struct cmsghdr *)NULL : \
    390             (struct cmsghdr *)((caddr_t)(cmsg) + ALIGN((cmsg)->cmsg_len)))
     390            (struct cmsghdr *)((caddr_t)(cmsg) + _ALIGN((cmsg)->cmsg_len)))
    391391
    392392#define CMSG_FIRSTHDR(mhdr)     ((struct cmsghdr *)(mhdr)->msg_control)
    393393