From: Antony Dovgal Date: Sun, 4 Jan 2009 15:08:34 +0000 (+0000) Subject: MFH: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domai... X-Git-Tag: php-5.2.9RC1~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=217b40b1aa1bfd73a5b858f504b224d2576130e7;p=php MFH: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname (c) felipe, Sun Jun 22 21:45:42 2008 UTC --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 971b5b3d2c..7e68503ef8 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