From: Felipe Pena Date: Sun, 22 Jun 2008 21:45:42 +0000 (+0000) Subject: - Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname X-Git-Tag: php-5.3.0alpha1~649 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f90b9d2979b21a505e4e2a2d207a37dc388b48f6;p=php - Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index be6d4911ab..67f5c32283 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -36,6 +36,11 @@ #endif #include + +#if defined(_GNU_SOURCE) && !defined(__USE_GNU) +# define __USE_GNU +#endif + #include #include #include