5b3ad39bdf
(further update 0.6.5 to be done soonish, but let's get this in first)
16 lines
547 B
Plaintext
16 lines
547 B
Plaintext
$OpenBSD: patch-deps_v8_src_atomicops_h,v 1.1 2011/12/07 12:18:01 sthen Exp $
|
|
--- deps/v8/src/atomicops.h.orig Tue Nov 8 18:37:38 2011
|
|
+++ deps/v8/src/atomicops.h Tue Nov 8 18:38:53 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;
|