]> granicus.if.org Git - php/commitdiff
MFH: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domai...
authorAntony Dovgal <tony2001@php.net>
Sun, 4 Jan 2009 15:08:34 +0000 (15:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 4 Jan 2009 15:08:34 +0000 (15:08 +0000)
(c) felipe, Sun Jun 22 21:45:42 2008 UTC

ext/posix/posix.c

index 971b5b3d2c91ecc7dc21ca533ff068f4efaf7b25..7e68503ef8064024955ce1e1047a0f11c856cff1 100644 (file)
 #endif
 
 #include <sys/resource.h>
+
+#if defined(_GNU_SOURCE) && !defined(__USE_GNU)
+# define __USE_GNU
+#endif
+
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>