aboutsummaryrefslogtreecommitdiff
path: root/lib/System/ThreadLocal.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-25 23:10:26 +0000
committerOwen Anderson <resistor@mac.com>2009-06-25 23:10:26 +0000
commit27fcfe1364943dadd99fd0ef5af6793f58acc446 (patch)
treeef1c58589fb0ec613a98e770c1204a453264887c /lib/System/ThreadLocal.cpp
parentc9ee1189c52930812a987932874667f1e04d6715 (diff)
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
Diffstat (limited to 'lib/System/ThreadLocal.cpp')
-rw-r--r--lib/System/ThreadLocal.cpp2
1 files changed, 1 insertions, 1 deletions
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 <cassert>
#include <pthread.h>