summaryrefslogtreecommitdiff
blob: 728a2d6ab137f5197d9cb8075a3bd13cc4fac094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -ur base.1/sys/unix/unixres.c work/sys/unix/unixres.c
--- base.1/sys/unix/unixres.c	2003-02-23 09:43:39.000000000 -0500
+++ work/sys/unix/unixres.c	2003-03-05 16:56:12.000000000 -0500
@@ -14,14 +14,19 @@
  * hide them.
  */
 
+/* _GNU_SOURCE has to be set before including config.h, as otherwise
+ * features.h will be included and it will be too late.
+ */
+
+#if defined(linux) && defined(__GNUC__)
+# define _GNU_SOURCE
+#endif
+
 #include "config.h"
 
 #ifdef GETRES_SUPPORT
 
 # if defined(LINUX)
-#ifdef __GNUC__
-#define _GNU_SOURCE
-#endif
 
 /* requires dynamic linking with libc */
 #include <dlfcn.h>