don't inhibit randomization on non-arm platforms
Change-Id: I064ddaa5242de043d41940b8ac4d54ecdfacd6bb
diff --git a/src/native/dalvik_system_Zygote.cc b/src/native/dalvik_system_Zygote.cc
index 1dd6c59..8b14117e 100644
--- a/src/native/dalvik_system_Zygote.cc
+++ b/src/native/dalvik_system_Zygote.cc
@@ -338,6 +338,9 @@
#if defined(__linux__)
static bool NeedsNoRandomizeWorkaround() {
+#if !defined(__arm__)
+ return false;
+#else
int major;
int minor;
struct utsname uts;
@@ -351,6 +354,7 @@
// Kernels before 3.4.* need the workaround.
return (major < 3) || ((major == 3) && (minor < 4));
+#endif
}
#endif