From owner-freebsd-hackers Tue Apr 25 9: 1:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by hub.freebsd.org (Postfix) with ESMTP id E3A9437B7D4 for ; Tue, 25 Apr 2000 09:01:35 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA09763; Tue, 25 Apr 2000 09:01:06 -0700 Date: Tue, 25 Apr 2000 09:01:06 -0700 From: Arun Sharma To: Jeroen Ruigrok/Asmodai Cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: socket.h and _POSIX_SOURCE Message-ID: <20000425090106.A9742@sharmas.dhs.org> References: <200004201604.JAA10995@sharmas.dhs.org> <20000424163942.E1842@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <20000424163942.E1842@daemon.ninth-circle.org>; from Jeroen Ruigrok/Asmodai on Mon, Apr 24, 2000 at 04:39:43PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > >#include > >$ 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