From owner-freebsd-questions Mon Apr 17 23:41: 6 2000 Delivered-To: freebsd-questions@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 1CBF637BC93 for ; Mon, 17 Apr 2000 23:41:03 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA08996 for freebsd-questions@freebsd.org; Mon, 17 Apr 2000 23:39:59 -0700 (PDT) (envelope-from adsharma) Date: Mon, 17 Apr 2000 23:39:59 -0700 From: Arun Sharma To: FreeBSD Questions Subject: socket.h and _POSIX_SOURCE Message-ID: <20000417233959.A8988@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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