File mozilla-aarch64_getrandom.patch of Package MozillaFirefox.4974

# HG changeset patch
# Parent  8c5fdbd8567bdb7e40ab870892a51ff8bccd08c6
Add the Linux getrandom syscall for aarch64

diff --git a/js/src/jsmath.cpp b/js/src/jsmath.cpp
--- a/js/src/jsmath.cpp
+++ b/js/src/jsmath.cpp
@@ -61,17 +61,17 @@
 # include <sys/syscall.h> // For SYS_getrandom.
 
 // Older glibc versions don't define SYS_getrandom, so we define it here if
 // it's not available. See bug 995069.
 # if defined(__x86_64__)
 #  define GETRANDOM_NR 318
 # elif defined(__i386__)
 #  define GETRANDOM_NR 355
-# elif defined(__arm__)
+# elif defined(__arm__) || defined(__aarch64__)
 #  define GETRANDOM_NR 384
 // Added other architectures:
 # elif defined(__ppc64le__)
 #  define GETRANDOM_NR 359
 # elif defined(__PPC64LE__)
 #  define GETRANDOM_NR 359
 # elif defined(__ppc64__)
 #  define GETRANDOM_NR 359