Index: mojo/runner/host/linux_sandbox.cc |
diff --git a/mojo/runner/host/linux_sandbox.cc b/mojo/runner/host/linux_sandbox.cc |
index 23b844328e8adc7d662197edfbea0f4aad21d7ed..20f7ba8457918c0ad3d910ec8a345984800a59b4 100644 |
--- a/mojo/runner/host/linux_sandbox.cc |
+++ b/mojo/runner/host/linux_sandbox.cc |
@@ -83,7 +83,11 @@ class SandboxPolicy : public sandbox::BaselinePolicy { |
case __NR_sched_getaffinity: |
return sandbox::RestrictSchedTarget(policy_pid(), sysno); |
case __NR_ftruncate: |
+#if defined(__NR_getrlimit) |
+ // __NR_getrlimit does not exist on all systems (e.g. in the arm/linux |
+ // build). |
case __NR_getrlimit: |
+#endif |
case __NR_uname: |
case __NR_getsockopt: |
case __NR_setsockopt: |