e2c46b
diff -up firefox-57.0b5/js/src/jit/AtomicOperations.h.jit-atomic-lucky firefox-57.0b5/js/src/jit/AtomicOperations.h
e2c46b
--- firefox-57.0b5/js/src/jit/AtomicOperations.h.jit-atomic-lucky	2017-10-06 12:34:02.338973607 +0200
e2c46b
+++ firefox-57.0b5/js/src/jit/AtomicOperations.h	2017-10-06 12:38:24.632622215 +0200
e2c46b
@@ -415,7 +415,7 @@ AtomicOperations::isLockfreeJS(int32_t s
e2c46b
 #elif defined(__s390__) || defined(__s390x__)
e2c46b
 # include "jit/none/AtomicOperations-feeling-lucky.h"
e2c46b
 #else
e2c46b
-# error "No AtomicOperations support provided for this platform"
e2c46b
+# include "jit/none/AtomicOperations-feeling-lucky.h"
e2c46b
 #endif
e2c46b
 
e2c46b
 #endif // jit_AtomicOperations_h
e2c46b
diff -up firefox-57.0b5/js/src/jit/none/AtomicOperations-feeling-lucky.h.jit-atomic-lucky firefox-57.0b5/js/src/jit/none/AtomicOperations-feeling-lucky.h
e2c46b
--- firefox-57.0b5/js/src/jit/none/AtomicOperations-feeling-lucky.h.jit-atomic-lucky	2017-09-19 06:18:28.000000000 +0200
e2c46b
+++ firefox-57.0b5/js/src/jit/none/AtomicOperations-feeling-lucky.h	2017-10-06 12:34:02.338973607 +0200
e2c46b
@@ -79,6 +79,14 @@
e2c46b
 #  define GNUC_COMPATIBLE
e2c46b
 #endif
e2c46b
 
e2c46b
+#ifdef __s390__
e2c46b
+#  define GNUC_COMPATIBLE
e2c46b
+#endif
e2c46b
+
e2c46b
+#ifdef __s390x__
e2c46b
+#  define GNUC_COMPATIBLE
e2c46b
+#endif
e2c46b
+
e2c46b
 // The default implementation tactic for gcc/clang is to use the newer
e2c46b
 // __atomic intrinsics added for use in C++11 <atomic>.  Where that
e2c46b
 // isn't available, we use GCC's older __sync functions instead.