16 lines
513 B
Plaintext
16 lines
513 B
Plaintext
$OpenBSD: patch-v8_src_platform_h,v 1.4 2011/09/19 08:55:26 robert Exp $
|
|
--- v8/src/platform.h.orig Tue Aug 23 10:46:25 2011
|
|
+++ v8/src/platform.h Wed Aug 24 13:42:33 2011
|
|
@@ -123,7 +123,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;
|