From 919d8e39757df6413a1d558f67774d1344f5dfd8 Mon Sep 17 00:00:00 2001 From: Orvid King Date: Wed, 12 Aug 2015 13:40:33 -0700 Subject: [PATCH] Don't warn if pthread_atfork isn't avaliable on MSVC Summary: Because we don't even have `fork` to begin with under MSVC. Closes #278 Reviewed By: @yfeldblum Differential Revision: D2306518 Pulled By: @sgolemon --- folly/detail/ThreadLocalDetail.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index c5fb61e4..bd8658cf 100644 --- a/folly/detail/ThreadLocalDetail.h +++ b/folly/detail/ThreadLocalDetail.h @@ -212,7 +212,7 @@ struct StaticMeta { /*parent*/ &StaticMeta::onForkParent, /*child*/ &StaticMeta::onForkChild); checkPosixError(ret, "pthread_atfork failed"); -#elif !__ANDROID__ +#elif !__ANDROID__ && !defined(_MSC_VER) // pthread_atfork is not part of the Android NDK at least as of n9d. If // something is trying to call native fork() directly at all with Android's // process management model, this is probably the least of the problems. -- 2.34.1