Date: Tue, 25 Apr 2000 09:01:06 -0700 From: Arun Sharma <adsharma@sharmas.dhs.org> To: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> Cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: socket.h and _POSIX_SOURCE Message-ID: <20000425090106.A9742@sharmas.dhs.org> In-Reply-To: <20000424163942.E1842@daemon.ninth-circle.org>; from Jeroen Ruigrok/Asmodai on Mon, Apr 24, 2000 at 04:39:43PM %2B0200 References: <200004201604.JAA10995@sharmas.dhs.org> <20000424163942.E1842@daemon.ninth-circle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 24, 2000 at 04:39:43PM +0200, Jeroen Ruigrok/Asmodai wrote: > -On [20000420 20:02], Arun Sharma (adsharma@sharmas.dhs.org) 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000425090106.A9742>