$OpenBSD: patch-third_party_protobuf_src_google_protobuf_stubs_atomicops_h,v 1.2 2012/10/12 16:46:10 robert Exp $
--- third_party/protobuf/src/google/protobuf/stubs/atomicops.h.orig	Tue Sep 25 15:01:42 2012
+++ third_party/protobuf/src/google/protobuf/stubs/atomicops.h	Wed Oct 10 17:19:29 2012
@@ -77,7 +77,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;
