openbsd-ports/www/chromium/patches/patch-base_atomicops_h
robert 1d1f0ea496 update to 15.0.874.102.
switch from using the hacked macosx transport dib to the linux one
which uses sysv shms.
make sure you also have a current kernel before using this version
2011-10-27 07:59:08 +00:00

25 lines
857 B
Plaintext

$OpenBSD: patch-base_atomicops_h,v 1.6 2011/10/27 07:59:08 robert Exp $
--- base/atomicops.h.orig Fri Oct 21 10:30:02 2011
+++ base/atomicops.h Wed Oct 26 13:37:46 2011
@@ -50,7 +50,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;
@@ -143,7 +147,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