From 27fcfe1364943dadd99fd0ef5af6793f58acc446 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 25 Jun 2009 23:10:26 +0000 Subject: Add a configure test for pthread_getspecific, and use it when building ThreadLocal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74222 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/ThreadLocal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/System/ThreadLocal.cpp') diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index 1c07036670..8d119fbf24 100644 --- a/lib/System/ThreadLocal.cpp +++ b/lib/System/ThreadLocal.cpp @@ -30,7 +30,7 @@ void* ThreadLocalImpl::getInstance() { return data; } } #else -#if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_MUTEX_LOCK) +#if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_GETSPECIFIC) #include #include -- cgit v1.2.3-70-g09d2