$OpenBSD: patch-third_party_protobuf_src_google_protobuf_stubs_atomicops_h,v 1.4 2016/07/31 13:11:44 robert Exp $
--- third_party/protobuf/src/google/protobuf/stubs/atomicops.h.orig.port	Wed Jul 20 21:03:43 2016
+++ third_party/protobuf/src/google/protobuf/stubs/atomicops.h	Thu Jul 21 10:25:32 2016
@@ -89,7 +89,11 @@ typedef intptr_t Atomic64;
 
 // Use AtomicWord for a machine-sized pointer.  It will use the Atomic32 or
 // Atomic64 routines below, depending on your architecture.
+#if defined(__OpenBSD__) && defined(__i386__)
+typedef Atomic32 AtomicWord;
+#else
 typedef intptr_t AtomicWord;
+#endif
 
 // Atomically execute:
 //      result = *ptr;
