summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
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