From 869247753c89e4fc54121343396e01d4fb9dd08d Mon Sep 17 00:00:00 2001 From: ivmai Date: Thu, 21 Apr 2011 15:20:00 +0000 Subject: [PATCH] 2011-04-21 Ivan Maidanski * include/private/gc_priv.h (_GNU_SOURCE): Revert one of the recent patches regarding this macro as the macro should be set (to 1) before including any other system header. --- ChangeLog | 6 ++++++ include/private/gc_priv.h | 12 ++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index caad631c..80f1b0cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-21 Ivan Maidanski + + * include/private/gc_priv.h (_GNU_SOURCE): Revert one of the + recent patches regarding this macro as the macro should be set + (to 1) before including any other system header. + 2011-04-21 Ivan Maidanski * doc/README.environment (GC_INITIAL_HEAP_SIZE, diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index b1bb9c78..9d97e327 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -26,15 +26,11 @@ # define GC_BUILD #endif -#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) +#if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \ + && !defined(_GNU_SOURCE) /* Can't test LINUX, since this must be defined before other includes. */ -# if !defined(__native_client__) -# include -# endif -# ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -# endif -#endif /* __linux__ */ +# define _GNU_SOURCE 1 +#endif #if (defined(DGUX) && defined(GC_THREADS) || defined(DGUX386_THREADS) \ || defined(GC_DGUX386_THREADS)) && !defined(_USING_POSIX4A_DRAFT10) -- 2.40.0