openbsd-ports/www/chromium/patches/patch-base_atomicops_h
2012-11-07 06:59:45 +00:00

25 lines
857 B
Plaintext

$OpenBSD: patch-base_atomicops_h,v 1.9 2012/11/07 06:59:45 robert Exp $
--- base/atomicops.h.orig Wed Oct 31 20:02:04 2012
+++ base/atomicops.h Tue Nov 6 22:45:22 2012
@@ -49,7 +49,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(OS_OPENBSD) && defined(__i386__)
+typedef Atomic32 AtomicWord;
+#else
typedef intptr_t AtomicWord;
+#endif
// Atomically execute:
// result = *ptr;
@@ -145,7 +149,7 @@ Atomic64 Release_Load(volatile const Atomic64* ptr);
// On some platforms we need additional declarations to make
// AtomicWord compatible with our other Atomic* types.
-#if defined(OS_MACOSX) || defined(OS_OPENBSD)
+#if defined(OS_MACOSX)
#include "base/atomicops_internals_atomicword_compat.h"
#endif