Commit 60c52222 authored by Tom Hughes's avatar Tom Hughes

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).
parent f642c5cf
......@@ -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 <pthread.h>
#endif
#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment