Chromium Code Reviews| 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..14d371e0594af5bbec0e7a4e519655bceaf8451f 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: |
| +#ifdef __NR_getrlimit |
|
sky
2015/12/02 22:02:18
Use #if defined(...).
|
| + // __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: |