summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-05-03 12:04:16 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-05-03 12:04:16 +0300
commitf62e6820057ce1b3b60bdc62311c340d588ce44a (patch)
treee79367ddcfeeffed94b7de4a0ee0347e98b69ebf /tools
parenta8d8480c011c4a066536fdf1809bf014b9cc991b (diff)
downloadbdwgc-f62e6820057ce1b3b60bdc62311c340d588ce44a.tar.gz
Remove GC_GNU_THREADS macro (HURD)
(code refactoring) * CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && *-*-gnu*] (GC_GNU_THREADS): Define GC_THREADS macro instead. * configure.ac [THREADS=posix && *-*-gnu*] (GC_GNU_THREADS): Likewise. * configure.ac (GC_GNU_THREADS): Remove AH_TEMPLATE. * include/gc_config_macros.h: Remove check for GC_GNU_THREADS. * include/private/gcconfig.h [!CPPCHECK]: Remove consistency check for GC_GNU_THREADS. * pthread_support.c [GC_PTHREADS && !GC_WIN32_THREADS] (GC_get_nprocs): Replace GC_GNU_THREADS to HURD macro check. * tools/threadlibs.c (main): Replace GC_GNU_THREADS to HURD and GC_THREADS macros check.
Diffstat (limited to 'tools')
-rw-r--r--tools/threadlibs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/threadlibs.c b/tools/threadlibs.c
index a97f91b8..879eda7d 100644
--- a/tools/threadlibs.c
+++ b/tools/threadlibs.c
@@ -29,7 +29,7 @@ int main(void)
# endif
# if (defined(GC_LINUX_THREADS) && !defined(PLATFORM_ANDROID)) \
|| defined(GC_IRIX_THREADS) || defined(GC_DARWIN_THREADS) \
- || defined(GC_AIX_THREADS) || defined(GC_GNU_THREADS)
+ || defined(GC_AIX_THREADS) || (defined(HURD) && defined(GC_THREADS))
# ifdef GC_USE_DLOPEN_WRAP
printf("-ldl ");
# endif