summaryrefslogtreecommitdiff
path: root/lang/mozjs60/patches/patch-js_src_jit_AtomicOperations.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mozjs60/patches/patch-js_src_jit_AtomicOperations.h')
-rw-r--r--lang/mozjs60/patches/patch-js_src_jit_AtomicOperations.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/mozjs60/patches/patch-js_src_jit_AtomicOperations.h b/lang/mozjs60/patches/patch-js_src_jit_AtomicOperations.h
new file mode 100644
index 00000000000..49341175875
--- /dev/null
+++ b/lang/mozjs60/patches/patch-js_src_jit_AtomicOperations.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_src_jit_AtomicOperations.h,v 1.1 2020/08/23 22:29:47 he Exp $
+
+Oddly, C++ on NetBSD/powerpc doesn't predefine __ppc__, only __powerpc__.
+
+--- jit/AtomicOperations.h.orig 2019-07-01 09:07:41.000000000 +0000
++++ jit/AtomicOperations.h
+@@ -378,7 +378,7 @@ inline bool AtomicOperations::isLockfree
+ #else
+ #error "No AtomicOperations support for this platform+compiler combination"
+ #endif
+-#elif defined(__ppc__) || defined(__PPC__)
++#elif defined(__ppc__) || defined(__PPC__) || defined(__powerpc__)
+ #include "jit/none/AtomicOperations-feeling-lucky.h"
+ #elif defined(__sparc__)
+ #include "jit/none/AtomicOperations-feeling-lucky.h"