From owner-freebsd-hackers Thu Apr 20 9: 4:20 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 322AD37BDE5 for ; Thu, 20 Apr 2000 09:04:17 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id JAA10995; Thu, 20 Apr 2000 09:04:06 -0700 Date: Thu, 20 Apr 2000 09:04:06 -0700 From: Arun Sharma Message-Id: <200004201604.JAA10995@sharmas.dhs.org> To: freebsd-hackers@freebsd.org Subject: Fwd: socket.h and _POSIX_SOURCE Reply-To: adsharma@sharmas.dhs.org (Arun Sharma) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Comments ? -Arun From: adsharma@sharmas.dhs.org (Arun Sharma) Newsgroups: muc.lists.freebsd.questions,mpc.lists.freebsd.questions Subject: socket.h and _POSIX_SOURCE Date: 18 Apr 2000 08:45:31 +0200 What's wrong with this ? -Arun $ 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 /usr/include/sys/socket.h:149: syntax error before `u_char' /usr/include/sys/socket.h:160: syntax error before `u_short' /usr/include/sys/socket.h:174: syntax error before `u_char' /usr/include/sys/socket.h:176: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:178: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:178: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:379: syntax error before `u_short' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message