Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2002 10:43:35 -0500
From:      Mike Barcroft <mike@FreeBSD.org>
To:        Marc Recht <marc@informatik.uni-bremen.de>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: sys/file.h and POSIX
Message-ID:  <20021208104335.E74206@espresso.q9media.com>
In-Reply-To: <509390000.1039349835@leeloo.intern.geht.de>; from marc@informatik.uni-bremen.de on Sun, Dec 08, 2002 at 01:17:15PM %2B0100
References:  <509390000.1039349835@leeloo.intern.geht.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Marc Recht <marc@informatik.uni-bremen.de> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021208104335.E74206>