Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2000 09:04:06 -0700
From:      Arun Sharma <adsharma@sharmas.dhs.org>
To:        freebsd-hackers@freebsd.org
Subject:   Fwd: socket.h and _POSIX_SOURCE
Message-ID:  <200004201604.JAA10995@sharmas.dhs.org>

next in thread | raw e-mail | index | archive | help
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 <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



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?200004201604.JAA10995>