OSDN Git Service

* pthread_support.c: Conditionally include dlfcn.h.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2006 01:58:30 +0000 (01:58 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2006 01:58:30 +0000 (01:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110832 138bc75d-0d04-0410-961f-82ee72b054a4

boehm-gc/ChangeLog
boehm-gc/pthread_support.c

index 425b015..81bf9f6 100644 (file)
@@ -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>
index 7c7bb05..55872ef 100644 (file)
 /*#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"