summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-20 23:21:16 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:51 +0200
commitf2127b50f72ad5449c24f1e0bd4b3d4ca88185d8 (patch)
tree0e90c9b729d06ba1ed591964b94bec873385eaf5 /dyn_load.c
parentcbf2fbfe06d7960b9379cd44eb5ad2016552925b (diff)
2009-10-20 Ivan Maidanski <ivmai@mail.ru> (really Petter Urkedal)
* dyn_load.c: Move the inclusion of private/gc_priv.h below definition of a feature macro (_GNU_SOURCE).
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dyn_load.c b/dyn_load.c
index d7acb2f..7cf9296 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -26,16 +26,17 @@
* None of this is safe with dlclose and incremental collection.
* But then not much of anything is safe in the presence of dlclose.
*/
-#include "private/gc_priv.h"
#if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \
&& !defined(_GNU_SOURCE)
/* Can't test LINUX, since this must be defined before other includes */
-# define _GNU_SOURCE
+# define _GNU_SOURCE
#endif
+#include "private/gc_priv.h"
+
#if !defined(MACOS) && !defined(_WIN32_WCE)
-# include <sys/types.h>
+# include <sys/types.h>
#endif
/* BTL: avoid circular redefinition of dlopen if GC_SOLARIS_THREADS defined */