* c++ doesn't predefine __ppc__, only __powerpc__. Compensate. * On NetBSD/powerpc, use libatomic for access to 64-bit atomics. PKGREVISION not bumped; build fix for NetBSD/powerpc, should not affect others.
15 lines
650 B
C
15 lines
650 B
C
$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"
|