From e3b9c4553ca2b8c5a2dbe288f4ae7d8f15150184 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 20 Nov 2012 08:27:20 +0100 Subject: [PATCH] Fix libgc compilation with clang. --- pthread_support.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pthread_support.c b/pthread_support.c index bc31c973..ccafb3b1 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -66,6 +66,7 @@ --> Macro replaced by USE_COMPILER_TLS # endif +#ifndef USE_COMPILER_TLS # if (defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) || \ defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)) || \ defined(GC_NETBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \ @@ -73,6 +74,7 @@ defined(GC_OPENBSD_THREADS) # define USE_PTHREAD_SPECIFIC # endif +#endif # if defined(GC_DGUX386_THREADS) && !defined(_POSIX4A_DRAFT10_SOURCE) # define _POSIX4A_DRAFT10_SOURCE 1 -- 2.40.0