Add i386 compat to libv8 - was removed in previous version as the patches

are upstream.

OK jeremy@
This commit is contained in:
abieber 2012-12-05 01:07:45 +00:00
parent ed4e6928d2
commit 2e7986324b
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_atomicops_h,v 1.1 2012/12/05 01:07:45 abieber Exp $
--- src/atomicops.h.orig Tue Dec 4 18:00:55 2012
+++ src/atomicops.h Tue Dec 4 18:01:52 2012
@@ -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;

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_platform_h,v 1.1 2012/12/05 01:07:45 abieber Exp $
--- src/platform.h.orig Tue Dec 4 18:02:18 2012
+++ src/platform.h Tue Dec 4 18:03:08 2012
@@ -89,7 +89,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;