$OpenBSD: patch-third_party_protobuf_src_google_protobuf_stubs_platform_macros_h,v 1.1 2016/10/27 18:30:41 robert Exp $
--- third_party/protobuf/src/google/protobuf/stubs/platform_macros.h.orig.port	Thu Sep  1 11:36:47 2016
+++ third_party/protobuf/src/google/protobuf/stubs/platform_macros.h	Thu Sep  1 11:36:59 2016
@@ -114,7 +114,7 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR
 
 #undef GOOGLE_PROTOBUF_PLATFORM_ERROR
 
-#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE)
+#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) || defined(__OpenBSD__)
 // Android ndk does not support the __thread keyword very well yet. Here
 // we use pthread_key_create()/pthread_getspecific()/... methods for
 // TLS support on android.
