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