summaryrefslogtreecommitdiff
path: root/www/firefox52/patches/patch-ipc_chromium_src_base_atomicops.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox52/patches/patch-ipc_chromium_src_base_atomicops.h')
-rw-r--r--www/firefox52/patches/patch-ipc_chromium_src_base_atomicops.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/firefox52/patches/patch-ipc_chromium_src_base_atomicops.h b/www/firefox52/patches/patch-ipc_chromium_src_base_atomicops.h
new file mode 100644
index 00000000000..2e997e2438c
--- /dev/null
+++ b/www/firefox52/patches/patch-ipc_chromium_src_base_atomicops.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-ipc_chromium_src_base_atomicops.h,v 1.1 2017/04/27 01:55:57 ryoon Exp $
+
+* Avoid invalid cast errors under NetBSD/evbearmv7hf-el.
+
+--- ipc/chromium/src/base/atomicops.h.orig 2014-11-13 22:49:59.000000000 +0000
++++ ipc/chromium/src/base/atomicops.h
+@@ -45,7 +45,7 @@ typedef int64_t Atomic64;
+
+ // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or
+ // Atomic64 routines below, depending on your architecture.
+-#ifdef OS_OPENBSD
++#if defined(OS_OPENBSD) || (defined(OS_NETBSD) && defined(ARCH_CPU_ARM_FAMILY))
+ #ifdef ARCH_CPU_64_BITS
+ typedef Atomic64 AtomicWord;
+ #else