From 217b40b1aa1bfd73a5b858f504b224d2576130e7 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 4 Jan 2009 15:08:34 +0000 Subject: [PATCH] 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 --- ext/posix/posix.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.50.1