From: Felipe Pena Date: Mon, 23 Jun 2008 01:16:49 +0000 (+0000) Subject: - MFB: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname... X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1487 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcca384b8c6f38ac24839ef2bfb581ec629bc041;p=php - MFB: 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 01afc91cd3..6ea4de3828 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