SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
25
www/chromium/patches/patch-v8_src_base_atomicops_h
Normal file
25
www/chromium/patches/patch-v8_src_base_atomicops_h
Normal file
|
@ -0,0 +1,25 @@
|
|||
Index: v8/src/base/atomicops.h
|
||||
--- v8/src/base/atomicops.h.orig
|
||||
+++ v8/src/base/atomicops.h
|
||||
@@ -57,10 +57,10 @@ using Atomic64 = SbAtomic64;
|
||||
using Atomic8 = char;
|
||||
using Atomic16 = int16_t;
|
||||
using Atomic32 = int32_t;
|
||||
-#if defined(V8_HOST_ARCH_64_BIT)
|
||||
+#if defined(V8_HOST_ARCH_64_BIT) || defined(V8_OS_OPENBSD)
|
||||
// We need to be able to go between Atomic64 and AtomicWord implicitly. This
|
||||
// means Atomic64 and AtomicWord should be the same type on 64-bit.
|
||||
-#if defined(__ILP32__)
|
||||
+#if defined(__ILP32__) && !defined(V8_OS_OPENBSD)
|
||||
using Atomic64 = int64_t;
|
||||
#else
|
||||
using Atomic64 = intptr_t;
|
||||
@@ -258,7 +258,7 @@ inline Atomic32 SeqCst_Load(volatile const Atomic32* p
|
||||
std::memory_order_seq_cst);
|
||||
}
|
||||
|
||||
-#if defined(V8_HOST_ARCH_64_BIT)
|
||||
+#if defined(V8_HOST_ARCH_64_BIT) || defined(V8_OS_OPENBSD)
|
||||
|
||||
inline Atomic64 Relaxed_CompareAndSwap(volatile Atomic64* ptr,
|
||||
Atomic64 old_value, Atomic64 new_value) {
|
Loading…
Add table
Add a link
Reference in a new issue