Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v rcsdiff: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.43.6.2 retrieving revision 1.43.6.3 diff -u -p -r1.43.6.2 -r1.43.6.3 --- src/sys/sys/socket.h 1999/07/06 11:03:07 1.43.6.2 +++ src/sys/sys/socket.h 1999/11/30 13:36:18 1.43.6.3 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.43.6.2 1999/07/06 11:03:07 itojun Exp $ */ +/* $NetBSD: socket.h,v 1.43.6.3 1999/11/30 13:36:18 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -400,7 +400,7 @@ struct cmsghdr { * This is different from ALIGN() defined in ARCH/include/param.h. * XXX think again carefully about architecture dependencies. */ -#define CMSG_ALIGN(n) (((n) + 3) & ~3) +#define CMSG_ALIGN(n) (((n) + sizeof(long) - 1) & ~(sizeof(long) - 1)) /* given pointer to struct cmsghdr, return pointer to next cmsghdr */ #define CMSG_NXTHDR(mhdr, cmsg) \