Date: Thu, 20 Jul 2000 09:20:09 -0700 (PDT) From: Martin Kaeske <MartinKaeske@lausitz.net> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/19971: bug in /usr/include/sys/socket.h Message-ID: <200007201620.JAA66450@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/19971; it has been noted by GNATS. From: Martin Kaeske <MartinKaeske@lausitz.net> To: freebsd-gnats-submit@FreeBSD.org, MartinKaeske@lausitz.net, sheldonh@FreeBSD.org Cc: Subject: Re: misc/19971: bug in /usr/include/sys/socket.h Date: Thu, 20 Jul 2000 18:24:35 +0200 Why doesn't we simply add an ALIGN macro to socket.h? Something like : #ifdef ALIGNBYTES #define ALIGNBYTES (sizeof(int) - 1) #ifdef ALIGN #define ALIGN(p) (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES) #endif /* ALIGN */ #endif /* ALIGNBYTES */ I think it's better than including <machine/param.h> just for a single macro, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007201620.JAA66450>