]> granicus.if.org Git - php/commitdiff
- MFB: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname...
authorFelipe Pena <felipe@php.net>
Mon, 23 Jun 2008 01:16:49 +0000 (01:16 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 23 Jun 2008 01:16:49 +0000 (01:16 +0000)
ext/posix/posix.c

index 01afc91cd36987e4b961b8e1142ad6bbf8202571..6ea4de3828abd2595c534eecd9e2fc188fd814e4 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>