diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2013-05-17 21:16:18 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2013-05-17 21:16:18 +0000 |
commit | df6bbaa5285ba963d082989c463965d04d6c881d (patch) | |
tree | c8b9298d99ce96eea752b211e4a7b912ed2d04e6 /libcxx/src/thread.cpp | |
parent | b1e4a25b03ed5f8b4fa20bb4f4933f580b8cd65b (diff) | |
download | bcm5719-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.cpp | 4 |
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() |