0bcd21
diff -up firefox-52.0b8/js/src/jsmath.cpp.missing-getrandom firefox-52.0b8/js/src/jsmath.cpp
0bcd21
--- firefox-52.0b8/js/src/jsmath.cpp.missing-getrandom	2017-02-22 08:09:21.764353407 +0100
0bcd21
+++ firefox-52.0b8/js/src/jsmath.cpp	2017-02-22 08:10:36.939330775 +0100
0bcd21
@@ -78,7 +78,7 @@
0bcd21
 static_assert(GETRANDOM_NR == SYS_getrandom,
0bcd21
               "GETRANDOM_NR should match the actual SYS_getrandom value");
0bcd21
 #  endif
0bcd21
-# else
0bcd21
+# elif defined(GETRANDOM_NR)
0bcd21
 #  define SYS_getrandom GETRANDOM_NR
0bcd21
 # endif
0bcd21
 
0bcd21
@@ -721,7 +721,7 @@ js::GenerateRandomSeed()
0bcd21
     seed = (static_cast<uint64_t>(arc4random()) << 32) | arc4random();
0bcd21
 #elif defined(XP_UNIX)
0bcd21
     bool done = false;
0bcd21
-# if defined(__linux__)
0bcd21
+# if defined(__linux__) && defined(SYS_getrandom)
0bcd21
     // Try the relatively new getrandom syscall first. It's the preferred way
0bcd21
     // on Linux as /dev/urandom may not work inside chroots and is harder to
0bcd21
     // sandbox (see bug 995069).