[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: FreeBSD 4.2 breakage (?)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2001-02-05 18:06:15 CET

> /usr/include/sys/socket.h:47: syntax error before `sa_family_t'
> [etc.]

The problem is the -D_POSIX_SOURCE which Greg Stein added last night.
I was thinking of sending mail about it at the time, but decided he
had probably done all the necessary footwork; I guess he missed

If you define _POSIX_SOURCE, you cannot portably include system
headers which are not specified by POSIX (including them indirectly
through apr header files doesn't change anything). A well-behaved
system will work anyway, but many systems will fail confusingly like
you reported; <sys/types.h> doesn't define something like u_char which
is used in the non-POSIX header file.

Remove the -D_POSIX_SOURCE and things should build again, or at least
shouldn't run into this problem.
Received on Sat Oct 21 14:36:21 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.