openbsd-ports/www/chromium/patches/patch-v8_src_platform_h
2012-11-07 06:59:45 +00:00

16 lines
513 B
Plaintext

$OpenBSD: patch-v8_src_platform_h,v 1.7 2012/11/07 06:59:45 robert Exp $
--- v8/src/platform.h.orig Wed Oct 31 20:04:19 2012
+++ v8/src/platform.h Tue Nov 6 22:45:41 2012
@@ -107,7 +107,11 @@ namespace internal {
// Use AtomicWord for a machine-sized pointer. It is assumed that
// reads and writes of naturally aligned values of this type are atomic.
+#if defined(__OpenBSD__) && defined(__i386__)
+typedef Atomic32 AtomicWord;
+#else
typedef intptr_t AtomicWord;
+#endif
class Semaphore;
class Mutex;