summaryrefslogtreecommitdiff
path: root/boehm-gc/pthread_support.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-10 01:58:30 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-10 01:58:30 +0000
commit61d62175342419c4385d7a7fe700daa892f58e67 (patch)
tree12f1b6b29d749bb13a38b1c270dfa13946e6ef12 /boehm-gc/pthread_support.c
parentd5f4f8fa337c43f5f499857924005b85b6dcbf2b (diff)
downloadgcc-61d62175342419c4385d7a7fe700daa892f58e67.tar.gz
* pthread_support.c: Conditionally include dlfcn.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/pthread_support.c')
-rw-r--r--boehm-gc/pthread_support.c4
1 files changed, 4 insertions, 0 deletions
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"