available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144574
91177308-0d34-0410-b5e6-
96231b3b80d8
//===----------------------------------------------------------------------===//
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Threading.h"
+#include "llvm/Config/config.h"
+#ifdef HAVE_PTHREAD_H
#include <pthread.h>
+#endif
#include "gtest/gtest.h"
namespace {
+#ifdef HAVE_PTHREAD_H
namespace test1 {
llvm::ManagedStatic<int> ms;
void *helper(void*) {
pthread_join(t2, NULL);
llvm_stop_multithreaded();
}
+#endif
} // anonymous namespace