From eb496303d7c7e6f2acb8ab90c22453947988f06b Mon Sep 17 00:00:00 2001 From: Petr Salinger Date: Mon, 18 Sep 2006 20:45:08 +0200 Subject: configure.ac: add support for GNU/kFreeBSD, accepted by upstream for gc 6.8. 2006-06-07 Petr Salinger * configure.ac: add support for GNU/kFreeBSD, accepted by upstream for gc 6.8. * dyn_load.c: Likewise. * include/gc.h: Likewise. * private/gcconfig.h: Likewise. * configure: Regenerate. * include/gc_config.h.in: Regenerate. From-SVN: r117033 --- boehm-gc/dyn_load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boehm-gc/dyn_load.c') diff --git a/boehm-gc/dyn_load.c b/boehm-gc/dyn_load.c index 3485474..d82bad8 100644 --- a/boehm-gc/dyn_load.c +++ b/boehm-gc/dyn_load.c @@ -26,7 +26,7 @@ * None of this is safe with dlclose and incremental collection. * But then not much of anything is safe in the presence of dlclose. */ -#if defined(__linux__) && !defined(_GNU_SOURCE) +#if (defined(__linux__) || defined(__GLIBC__)) && !defined(_GNU_SOURCE) /* Can't test LINUX, since this must be define before other includes */ # define _GNU_SOURCE #endif @@ -392,7 +392,7 @@ GC_bool GC_register_main_static_data() /* For glibc 2.2.4+. Unfortunately, it doesn't work for older */ /* versions. Thanks to Jakub Jelinek for most of the code. */ -# if defined(LINUX) /* Are others OK here, too? */ \ +# if (defined(LINUX) || defined (__GLIBC__)) /* Are others OK here, too? */ \ && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) -- cgit v1.1