From 4f204c1fd7ba52f1466c4ae3fa9dffe05cb82b3a Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Fri, 31 Oct 2014 12:49:57 -0700 Subject: [PATCH] Fix bad rebase for SSLContext Summary: Put back previous liger diffs Test Plan: It builds Reviewed By: seanc@fb.com Subscribers: doug, ssl-diffs@, njormrod, folly-diffs@ FB internal diff: D1652754 Signature: t1:1652754:1414785984:df0fc7bf59dc2e89defd2c1a4ffe3b288238ba58 --- folly/io/async/SSLContext.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/folly/io/async/SSLContext.cpp b/folly/io/async/SSLContext.cpp index c50e2571..6fcbeafa 100644 --- a/folly/io/async/SSLContext.cpp +++ b/folly/io/async/SSLContext.cpp @@ -21,7 +21,6 @@ #include #include -#include #include #include @@ -547,7 +546,13 @@ static void callbackLocking(int mode, int n, const char*, int) { } static unsigned long callbackThreadID() { - return static_cast(pthread_self()); + return static_cast( +#ifdef __APPLE__ + pthread_mach_thread_np(pthread_self()) +#else + pthread_self() +#endif + ); } static CRYPTO_dynlock_value* dyn_create(const char*, int) { -- 2.34.1