diff --git a/folly/portability/PThread.cpp b/folly/portability/PThread.cpp index d75e012..03019f3 100644 --- a/folly/portability/PThread.cpp +++ b/folly/portability/PThread.cpp @@ -18,6 +18,9 @@ #if !FOLLY_HAVE_PTHREAD && _WIN32 #include // @manual +#include +#include +#include #include @@ -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(), + 0,0, const_cast(value), false); return 0;