diff options
author | Petr Salinger <Petr.Salinger@seznam.cz> | 2006-09-18 20:45:08 +0200 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-09-18 18:45:08 +0000 |
commit | eb496303d7c7e6f2acb8ab90c22453947988f06b (patch) | |
tree | 666cdb5c8b90249ec72621c86394c11ef6b41897 /boehm-gc/dyn_load.c | |
parent | 94ba45dfe265e2fde473c6bb02484e5608af61ea (diff) | |
download | gcc-eb496303d7c7e6f2acb8ab90c22453947988f06b.zip gcc-eb496303d7c7e6f2acb8ab90c22453947988f06b.tar.gz gcc-eb496303d7c7e6f2acb8ab90c22453947988f06b.tar.bz2 |
configure.ac: add support for GNU/kFreeBSD, accepted by upstream for gc 6.8.
2006-06-07 Petr Salinger <Petr.Salinger@seznam.cz>
* 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
Diffstat (limited to 'boehm-gc/dyn_load.c')
-rw-r--r-- | boehm-gc/dyn_load.c | 4 |
1 files changed, 2 insertions, 2 deletions
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))) |