aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-02-10 01:58:30 +0000
committerTom Tromey <tromey@redhat.com>2006-02-10 01:58:30 +0000
commit55dfee827c3b0fa6229e50613edd6a4aa470563c (patch)
tree12f1b6b29d749bb13a38b1c270dfa13946e6ef12 /boehm-gc
parent1e1550c68af6c9a0ddc1903b653ff0592bd45511 (diff)
* pthread_support.c: Conditionally include dlfcn.h.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@110832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog4
-rw-r--r--boehm-gc/pthread_support.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 425b015952a..81bf9f6112f 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-09 Tom Tromey <tromey@redhat.com>
+
+ * pthread_support.c: Conditionally include dlfcn.h.
+
2006-02-06 Jakub Jelinek <jakub@redhat.com>
Anthony Green <green@redhat.com>
Tom Tromey <tromey@redhat.com>
diff --git a/boehm-gc/pthread_support.c b/boehm-gc/pthread_support.c
index 7c7bb0519b2..55872ef65c8 100644
--- a/boehm-gc/pthread_support.c
+++ b/boehm-gc/pthread_support.c
@@ -47,8 +47,12 @@
/*#define DEBUG_THREADS 1*/
/*#define GC_ASSERTIONS*/
+#include "gc_config.h"
+
+#ifdef GC_PTHREAD_SYM_VERSION
#define _GNU_SOURCE
#include <dlfcn.h>
+#endif
# include "gc.h"
# include "private/pthread_support.h"