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

# HG changeset patch
# Parent  15c8f0d9f3797051ed4ff8a88df39ca74cddd175
changeset:   351051:18e8f6994472
user:        Charles Robertson <cgrobertson@suse.com>
date:        Thu Mar 30 14:53:00 2017 -0400
files:       js/src/jsmath.cpp
description:
Bug 1352236 - Work around missing GETRANDOM_NR when building against older versions of glibc. r=luke

diff --git a/js/src/jsmath.cpp b/js/src/jsmath.cpp
--- a/js/src/jsmath.cpp
+++ b/js/src/jsmath.cpp
@@ -61,19 +61,19 @@
 # if defined(__x86_64__)
 #  define GETRANDOM_NR 318
 # elif defined(__i386__)
 #  define GETRANDOM_NR 355
 # elif defined(__aarch64__)
 #  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>
 #  if _MIPS_SIM == _MIPS_SIM_ABI32
 #    define GETRANDOM_NR 4353
 #  elif _MIPS_SIM == _MIPS_SIM_ABI64
 #    define GETRANDOM_NR 5313
 #  elif _MIPS_SIM == _MIPS_SIM_NABI32