summaryrefslogtreecommitdiffstats
path: root/libcxx/src/thread.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-05-17 21:16:18 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-05-17 21:16:18 +0000
commitdf6bbaa5285ba963d082989c463965d04d6c881d (patch)
treec8b9298d99ce96eea752b211e4a7b912ed2d04e6 /libcxx/src/thread.cpp
parentb1e4a25b03ed5f8b4fa20bb4f4933f580b8cd65b (diff)
downloadbcm5719-llvm-df6bbaa5285ba963d082989c463965d04d6c881d.tar.gz
bcm5719-llvm-df6bbaa5285ba963d082989c463965d04d6c881d.zip
Create a weak pthread_create reference on NetBSD to not force a
dependency on libpthread for code that doesn't use threads itself. llvm-svn: 182161
Diffstat (limited to 'libcxx/src/thread.cpp')
-rw-r--r--libcxx/src/thread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp
index c6f6748f01b..2b3729f674d 100644
--- a/libcxx/src/thread.cpp
+++ b/libcxx/src/thread.cpp
@@ -21,6 +21,10 @@
#endif // !__sun__ && !__linux__
#endif // !_WIN32
+#if defined(__NetBSD__)
+#pragma weak pthread_create // Do not create libpthread dependency
+#endif
+
_LIBCPP_BEGIN_NAMESPACE_STD
thread::~thread()
OpenPOWER on IntegriCloud