Don't build code with _GNU_SOURCE, use _XOPEN_SOURCE=500 instead.

_GNU_SOURCE is only now for xbps_xasprintf() if vasprintf is found,
and only for <stdio.h>, it's unset immediately once the header is included.
This commit is contained in:
Juan RP
2011-01-25 13:00:23 +01:00
parent 64cd7cf0a4
commit be5ff1d934
9 changed files with 21 additions and 8 deletions

5
configure vendored
View File

@ -184,9 +184,8 @@ fi
case "$OS" in
linux)
echo "CPPFLAGS += -D_XOPEN_SOURCE=600 -D_GNU_SOURCE" >>$CONFIG_MK
echo "CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" >> $CONFIG_MK
echo "CPPFLAGS += -D_LARGE_FILES" >> $CONFIG_MK
echo "CPPFLAGS += -D_XOPEN_SOURCE=500" >>$CONFIG_MK
echo "CPPFLAGS += -D_FILE_OFFSET_BITS=64" >> $CONFIG_MK
;;
*)
;;