On Mon, Apr 24, 2000 at 04:39:43PM +0200, Jeroen Ruigrok/Asmodai wrote:
> -On [20000420 20:02], Arun Sharma ([EMAIL PROTECTED]) wrote:
> >Comments ?
> >
> >$ cat test.c
> >#include <sys/types.h>
> >#include <sys/socket.h>
> >$ cc -D_POSIX_SOURCE -c test.c
> >In file included from test.c:2:
> >/usr/include/sys/socket.h:47: syntax error before `sa_family_t'
> >/usr/include/sys/socket.h:47: warning: data definition has no type or storage
> >  class
> 
> sys/socket.h declares sa_family_t as a u_char.
> 
> If we look at sys/types.h we see:
> 
> #ifndef _POSIX_SOURCE
> typedef unsigned char   u_char;
> [snip]
> #endif
> 
> Which combined with D_POSIX_SOURCE causes [logical] problems.

Would it be fair to say this is a (POSIX non-compliance) bug in the
header files ?

        -Arun


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to