aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/pthread_support.c
diff options
context:
space:
mode:
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 7c7bb05..55872ef 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"