Date: Mon, 17 Apr 2000 23:39:59 -0700 From: Arun Sharma <adsharma@sharmas.dhs.org> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: socket.h and _POSIX_SOURCE Message-ID: <20000417233959.A8988@sharmas.dhs.org>
next in thread | raw e-mail | index | archive | help
What's wrong with this ? -Arun $ 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 /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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000417233959.A8988>