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