preprocessor error

Giorgio <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Hi,
the current CVS head of dietlibc does not compile (archs i386 and arm
tested).
On both archs I get the following error:

...
gcc -D__dietlibc__ -I. -isystem include -pipe -nostdinc -Os -fomit-frame-pointer
-falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2 -W -Wall
-Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch
-Wno-unused -Wredundant-decls -c libugly/grantpt.c -o bin-i386/grantpt.o -D__dietlibc__
In file included from libugly/grantpt.c:3:
include/fcntl.h:675:45: error: operator '&&' has no right operand
make: *** [bin-i386/grantpt.o] Error 1
root [ /tmp/dietlibc ]#

the problem is in this preprocessor directive:


#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >=3D 600          <== this line
int posix_fallocate(int fd, off64_t offset, off64_t len) __THROW;
#endif

at the end of include/fcntl.h

The symbol _XOPEN_SOURCE is actually defined but has no value.

giorgio

--
Giorgio, [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.