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
This commit is contained in:
Owen Anderson
2009-06-25 23:10:26 +00:00
parent c9ee1189c5
commit 27fcfe1364
4 changed files with 110 additions and 1 deletions

View File

@ -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>