openbsd-ports/www/chromium/patches/patch-v8_src_atomicops_h

16 lines
533 B
Plaintext

$OpenBSD: patch-v8_src_atomicops_h,v 1.1 2011/06/10 07:41:24 robert Exp $
--- v8/src/atomicops.h.orig Thu Jun 9 16:26:26 2011
+++ v8/src/atomicops.h Thu Jun 9 17:16:22 2011
@@ -69,7 +69,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;