From 5cb3f9b78af0bab5bd6b06a1c215a3dcdefb58b7 Mon Sep 17 00:00:00 2001 From: "jln@chromium.org" Date: Wed, 10 Jul 2013 00:50:52 +0000 Subject: Linux Sandbox: forward declare Errorcode in sandbox_bpf_policy_forward.h sandbox_bpf_policy_forward.h can forward declare ErrorCode. This should fix a Chromium on MIPS compilation issue. BUG=130022 NOTRY=true R=markus@chromium.org Review URL: https://codereview.chromium.org/18943004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210691 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/sandbox_seccomp_bpf_linux.h | 2 ++ sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/content/common/sandbox_seccomp_bpf_linux.h b/content/common/sandbox_seccomp_bpf_linux.h index 16a120e..6ad6c0f 100644 --- a/content/common/sandbox_seccomp_bpf_linux.h +++ b/content/common/sandbox_seccomp_bpf_linux.h @@ -5,6 +5,8 @@ #ifndef CONTENT_COMMON_SANDBOX_SECCOMP_BPF_LINUX_H_ #define CONTENT_COMMON_SANDBOX_SECCOMP_BPF_LINUX_H_ +#include + #include "base/basictypes.h" #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h" diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h b/sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h index 673ebe6..afc9d87 100644 --- a/sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h @@ -6,12 +6,12 @@ #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_FORWARD_H_ #include "base/callback_forward.h" -#include "sandbox/linux/seccomp-bpf/errorcode.h" namespace playground2 { class Sandbox; -typedef playground2::ErrorCode BpfSandboxPolicy( +class ErrorCode; +typedef ErrorCode BpfSandboxPolicy( Sandbox* sandbox_compiler, int system_call_number, void* aux); -- cgit v1.1