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