]> granicus.if.org Git - php/commitdiff
- Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname
authorFelipe Pena <felipe@php.net>
Sun, 22 Jun 2008 21:45:42 +0000 (21:45 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 22 Jun 2008 21:45:42 +0000 (21:45 +0000)
ext/posix/posix.c

index be6d4911abbf8ace4f99fe9f1a97d42d20dc02a6..67f5c322833c2b353a8f8f8b049e03e587ff10b4 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>