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
This commit is contained in:
Joerg Sonnenberger 2013-05-17 21:16:18 +00:00
parent b1e4a25b03
commit df6bbaa528
1 changed files with 4 additions and 0 deletions

View File

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