openbsd-ports/www/chromium/patches/patch-base_atomicops_h
2013-01-18 21:38:02 +00:00

25 lines
858 B
Plaintext

$OpenBSD: patch-base_atomicops_h,v 1.10 2013/01/18 21:38:02 robert Exp $
--- base/atomicops.h.orig Tue Jan 8 03:40:59 2013
+++ base/atomicops.h Mon Jan 14 19:47:35 2013
@@ -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;
@@ -147,7 +151,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