Add _CMSG_HDR_ALIGN to bits/socket.h
authorDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 8 Jan 2009 03:03:17 +0000 (22:03 -0500)
committerDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 8 Jan 2009 03:03:17 +0000 (22:03 -0500)
sysdeps/unix/sysv/solaris2/kopensolaris-gnu/bits/socket.h

index e3eab49..dcf60da 100644 (file)
@@ -240,6 +240,7 @@ struct cmsghdr
 #endif
 #define CMSG_ALIGN(len)        (((uintptr_t)(len) + _CMSG_HDR_ALIGNMENT - 1) \
                        & ~(_CMSG_HDR_ALIGNMENT - 1))
+#define _CMSG_HDR_ALIGN(x)     CMSG_ALIGN(x)
 #define CMSG_DATA(cmsg) ((unsigned char *) CMSG_ALIGN((struct cmsghdr *) (cmsg) + 1))
 #define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr (mhdr, cmsg)
 #define CMSG_FIRSTHDR(mhdr) \