$OpenBSD: patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops_h,v 1.1 2016/04/27 14:18:52 landry Exp $

Fix build on i386: https://bugzilla.mozilla.org/show_bug.cgi?id=1192556

--- mozilla/toolkit/components/protobuf/src/google/protobuf/stubs/atomicops.h.orig	Fri Feb 19 04:22:51 2016
+++ mozilla/toolkit/components/protobuf/src/google/protobuf/stubs/atomicops.h	Sat Mar  5 11:09:42 2016
@@ -78,7 +78,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(GOOGLE_PROTOBUF_ARCH_64_BIT)
+typedef Atomic32 AtomicWord;
+#else
 typedef intptr_t AtomicWord;
+#endif
 
 // Atomically execute:
 //      result = *ptr;
