openbsd-ports/lang/node/patches/patch-deps_v8_src_atomicops_h
jasper 5d73d74c96 re-import node into lang, www was poorly chosen at the time of import
from aaron bieber (MAINTAINER), with cluestick hitting by espie@ 
as discussed with and ok sthen@
2012-05-23 15:11:43 +00:00

16 lines
552 B
Plaintext

$OpenBSD: patch-deps_v8_src_atomicops_h,v 1.1.1.1 2012/05/23 15:11:43 jasper 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;