summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
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
commit1154983b9c4938136ed81cc607ea39f80343adf5 (patch)
treee93c5a0ca2611ff11f47ba4cb8c34223780c85cb /llvm/lib/System
parentf2911667d84104a046b4d61e29a8023e99764f1e (diff)
downloadbcm5719-llvm-1154983b9c4938136ed81cc607ea39f80343adf5.tar.gz
bcm5719-llvm-1154983b9c4938136ed81cc607ea39f80343adf5.zip
Add a configure test for pthread_getspecific, and use it when building ThreadLocal.
llvm-svn: 74222
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/ThreadLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/ThreadLocal.cpp b/llvm/lib/System/ThreadLocal.cpp
index 1c070366709..8d119fbf241 100644
--- a/llvm/lib/System/ThreadLocal.cpp
+++ b/llvm/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>
OpenPOWER on IntegriCloud