diff options
author | Gordana.Cmiljanovic <Gordana.Cmiljanovic@imgtec.com> | 2014-09-17 10:23:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-17 17:23:59 +0000 |
commit | 89a0016c70cb029bc79fb70959f03fd2f0885b9d (patch) | |
tree | 9a13489b3b57f7633ede90cbde9567b2627c2f2f | |
parent | 102706b5cedfa35c68069f185a4f8c187d485722 (diff) | |
download | chromium_src-89a0016c70cb029bc79fb70959f03fd2f0885b9d.zip chromium_src-89a0016c70cb029bc79fb70959f03fd2f0885b9d.tar.gz chromium_src-89a0016c70cb029bc79fb70959f03fd2f0885b9d.tar.bz2 |
[MIPS] Fix seccomp-bpf compile error for MIPS
This change fixes the seccomp-bpf compile error
introduced by change:
https://chromium.googlesource.com/chromium/src/+/ab2d46af89c657ab4fd01ab00de1ba2a6ad73f8d
BUG=408845
Review URL: https://codereview.chromium.org/569333003
Cr-Commit-Position: refs/heads/master@{#295291}
-rw-r--r-- | sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc index 85d3f70..25398b6 100644 --- a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +++ b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc @@ -13,6 +13,11 @@ #include "build/build_config.h" #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" +#if defined(__mips__) +// __NR_Linux, is defined in <asm/unistd.h>. +#include <asm/unistd.h> +#endif + #define SECCOMP_MESSAGE_COMMON_CONTENT "seccomp-bpf failure" #define SECCOMP_MESSAGE_CLONE_CONTENT "clone() failure" #define SECCOMP_MESSAGE_PRCTL_CONTENT "prctl() failure" |