From 60c5222287356d36903ae0cde9ad8fa76752192f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Jul 2015 16:16:16 -0700 Subject: Include pthread.h when using GOOGLE_PROTOBUF_NO_THREADLOCAL. When GOOGLE_PROTOBUF_NO_THREADLOCAL is defined, classes that depend on pthread functions are included (such as ThreadLocalStorage). --- src/google/protobuf/stubs/platform_macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google/protobuf/stubs/platform_macros.h b/src/google/protobuf/stubs/platform_macros.h index 9e0344d8..fcafcc14 100644 --- a/src/google/protobuf/stubs/platform_macros.h +++ b/src/google/protobuf/stubs/platform_macros.h @@ -115,6 +115,8 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR // TLS support on android. // iOS also does not support the __thread keyword. #define GOOGLE_PROTOBUF_NO_THREADLOCAL + +#include #endif #endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_ -- cgit v1.2.3