Sean Boudreau(deleted)
|
Re: unistd.h fails when -std=c99 is defined
|
Sean Boudreau(deleted)
12/14/2007 10:07 AM
post3771
|
Re: unistd.h fails when -std=c99 is defined
On Thu, Dec 13, 2007 at 05:10:19AM -0500, Christian Leutloff wrote:
> Some packages of pkgsrc are triggering this error message:
>
> /usr/qnx632/target/qnx6/usr/include/unistd.h:135:2: #error
> _POSIX_VERSION not configured for system
>
>
> Here is a small example to verify the behavior:
>
> $ cat unistd.c
> #include <unistd.h>
>
> $ cc unistd.c
>
> (no messages -> works)
>
> $ cc -std=c99 unistd.c
> In file included from unistd.c:1:
> /usr/qnx632/target/qnx6/usr/include/unistd.h:135:2: #error
> _POSIX_VERSION not configured for system
This is fixed in the latest unistd.h. For now
you can just get rid of that #error:
--- unistd.h.orig 2006-02-22 16:14:00.000000000 -0500
+++ unistd.h 2007-12-14 10:10:55.000000000 -0500
@@ -131,8 +131,6 @@
#define _POSIX_VERSION 199009L
#elif defined(__EXT_POSIX1_198808)
#define _POSIX_VERSION 198808L
-#else
-#error _POSIX_VERSION not configured for system
#endif
#endif
-seanb
|
|
|