mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 03:49:00 +08:00
232c20345f
* [folly/fizz]Upgrade version. * [fizz]Upgrade to v2019.10.28.00.
24 lines
752 B
Diff
24 lines
752 B
Diff
diff --git a/folly/portability/PThread.cpp b/folly/portability/PThread.cpp
|
|
index 5cc3731..86a4a0b 100644
|
|
--- a/folly/portability/PThread.cpp
|
|
+++ b/folly/portability/PThread.cpp
|
|
@@ -18,6 +18,9 @@
|
|
|
|
#if !FOLLY_HAVE_PTHREAD && defined(_WIN32)
|
|
#include <boost/thread/tss.hpp> // @manual
|
|
+#include <boost/thread/exceptions.hpp>
|
|
+#include <boost/shared_ptr.hpp>
|
|
+#include <boost/thread/thread_only.hpp>
|
|
|
|
#include <errno.h>
|
|
|
|
@@ -684,7 +687,7 @@ int pthread_setspecific(pthread_key_t key, const void* value) {
|
|
// function, which we don't want to do.
|
|
boost::detail::set_tss_data(
|
|
realKey,
|
|
- boost::shared_ptr<boost::detail::tss_cleanup_function>(),
|
|
+ 0,0,
|
|
const_cast<void*>(value),
|
|
false);
|
|
return 0;
|