From dcca384b8c6f38ac24839ef2bfb581ec629bc041 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 23 Jun 2008 01:16:49 +0000 Subject: [PATCH] - MFB: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname --- ext/posix/posix.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.50.1