From f2127b50f72ad5449c24f1e0bd4b3d4ca88185d8 Mon Sep 17 00:00:00 2001 From: ivmai Date: Tue, 20 Oct 2009 21:21:16 +0000 Subject: [PATCH] 2009-10-20 Ivan Maidanski (really Petter Urkedal) * dyn_load.c: Move the inclusion of private/gc_priv.h below definition of a feature macro (_GNU_SOURCE). --- ChangeLog | 5 +++++ dyn_load.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 31f48f81..95492494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-10-20 Ivan Maidanski (really Petter Urkedal) + + * dyn_load.c: Move the inclusion of private/gc_priv.h below + definition of a feature macro (_GNU_SOURCE). + 2009-10-20 Ivan Maidanski * include/gc.h (REVEAL_POINTER): Remove redundant parentheses. diff --git a/dyn_load.c b/dyn_load.c index d7acb2f1..7cf92961 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 +# include #endif /* BTL: avoid circular redefinition of dlopen if GC_SOLARIS_THREADS defined */ -- 2.49.0