Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: mojo/runner/host/linux_sandbox.cc

Issue 1489193002: Enable arm/linux chromium to build with gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_bfd_linking
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« build/config/compiler/BUILD.gn ('K') | « docs/linux_chromium_arm.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« build/config/compiler/BUILD.gn ('K') | « docs/linux_chromium_arm.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698