From 61d62175342419c4385d7a7fe700daa892f58e67 Mon Sep 17 00:00:00 2001
From: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 10 Feb 2006 01:58:30 +0000
Subject: [PATCH] 	* pthread_support.c: Conditionally include dlfcn.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110832 138bc75d-0d04-0410-961f-82ee72b054a4
---
 boehm-gc/ChangeLog         | 4 ++++
 boehm-gc/pthread_support.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 425b015952a2..81bf9f6112f1 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 7c7bb0519b27..55872ef65c88 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"
-- 
GitLab