This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: struct sockaddr_storage
- To: Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
- Subject: Re: struct sockaddr_storage
- From: Philip Blundell <pb@nexus.co.uk>
- Date: Tue, 11 May 1999 09:31:28 +0100
- cc: libc-hacker@cygnus.com
>This is wrong. The preprocessor must use the widest type for evaluation,
>which is intmax_t in C9x, so that ~0U is _always_ bigger than 0xffffffff
>(independent of the suffix, which is ignored by the preprocessor, and
>intmax_t must have at least 64 bits). You must use ULONG_MAX instead.
OK, thanks. In that case <netinet/in.h> should probably be fixed too - it's
important that the two remain in step. I'll make a patch shortly.
p.