Add i386 compat to libv8 - was removed in previous version as the patches
are upstream. OK jeremy@
This commit is contained in:
parent
ed4e6928d2
commit
2e7986324b
15
lang/libv8/patches/patch-src_atomicops_h
Normal file
15
lang/libv8/patches/patch-src_atomicops_h
Normal 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;
|
15
lang/libv8/patches/patch-src_platform_h
Normal file
15
lang/libv8/patches/patch-src_platform_h
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user