Marc Recht <[EMAIL PROTECTED]> writes: > Hi! > > While compiling some third-party code I got this: > gcc -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE_=600 > -D_XOPEN_SOURCE_EXTENDED=1 test.c > In file included from test.c:2: > /usr/include/sys/file.h:130: syntax error before "u_int" > > This makes me wonder a bit.. Shouldn't the header at least be includeable ? > Eg. setting __BSD_VISIBLE around xfile ? > > Test source: > > #include <sys/types.h> > #include <sys/file.h> > > int main() { > return 0; > }
Why are you specifying a standard and then using features outside its scope? Either you want a BSD environment (in which case don't specify a standard), or you want a standard environment (where file.h doesn't exist). Indeed what you are trying to do is unsupported. For details on how to write a conforming application see section 2.2 of POSIX.1-2001. Best regards, Mike Barcroft To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message