From f90b9d2979b21a505e4e2a2d207a37dc388b48f6 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 22 Jun 2008 21:45:42 +0000 Subject: [PATCH] - 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 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 -- 2.50.1