File mozilla-glibc-getrandom.patch of Package MozillaFirefox.11699

# HG changeset patch
# User msirringhaus@suse.de
# Date 1490899980 14400
#      Thu Mar 30 14:53:00 2017 -0400
# Node ID 7e70a7a62a6b1b54aa4a520f1bcb6695c3a0214d
# Parent  5b21ede56c39447f368f8544ad060be6276cfafb
changeset:   351051:18e8f6994472
user:        Charles Robertson <cgrobertson@suse.com>
files:       js/src/jsmath.cpp
description:
Bug 1352236 - Work around missing GETRANDOM_NR when building against older versions of glibc. r=luke

diff -r 5b21ede56c39 -r 7e70a7a62a6b js/src/jsmath.cpp
--- a/js/src/jsmath.cpp	Mon May 28 16:15:13 2018 +0900
+++ b/js/src/jsmath.cpp	Thu Mar 30 14:53:00 2017 -0400
@@ -66,9 +66,9 @@
 #define GETRANDOM_NR 278
 #elif defined(__arm__)
 #define GETRANDOM_NR 384
-#elif defined(__powerpc__)
+#elif defined(__powerpc__) || defined(__ppc64__) || defined(__ppc64le__)
 #define GETRANDOM_NR 359
-#elif defined(__s390__)
+#elif defined(__s390__) || defined(__s390x__)
 #define GETRANDOM_NR 349
 #elif defined(__mips__)
 #include <sgidefs.h>