summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2015-11-06 16:50:42 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-07 00:51:30 +0000
commit7064ac8280fd30043a32ad4f532bf42c908ed170 (patch)
treed5b6583c82b3c2491ac773051a31524fa3679de4
parentbc1cdb98cb2751b5afa7195738ea07744f5b5045 (diff)
downloadchromium_src-7064ac8280fd30043a32ad4f532bf42c908ed170.zip
chromium_src-7064ac8280fd30043a32ad4f532bf42c908ed170.tar.gz
chromium_src-7064ac8280fd30043a32ad4f532bf42c908ed170.tar.bz2
include what you use: errno.h in sandbox/
Adding some missing errno.h includes for errno in sandbox/ Review URL: https://codereview.chromium.org/1422253004 Cr-Commit-Position: refs/heads/master@{#358474}
-rw-r--r--sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc3
-rw-r--r--sandbox/linux/seccomp-bpf/syscall_unittest.cc1
-rw-r--r--sandbox/linux/services/yama.cc1
-rw-r--r--sandbox/linux/syscall_broker/broker_host.cc1
4 files changed, 5 insertions, 1 deletions
diff --git a/sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc b/sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc
index 9aa3209..09f2d58 100644
--- a/sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc
+++ b/sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <errno.h>
+#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <fcntl.h>
#include <unistd.h>
#include <vector>
diff --git a/sandbox/linux/seccomp-bpf/syscall_unittest.cc b/sandbox/linux/seccomp-bpf/syscall_unittest.cc
index 5fdee6c..3fe404c 100644
--- a/sandbox/linux/seccomp-bpf/syscall_unittest.cc
+++ b/sandbox/linux/seccomp-bpf/syscall_unittest.cc
@@ -5,6 +5,7 @@
#include "sandbox/linux/seccomp-bpf/syscall.h"
#include <asm/unistd.h>
+#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/syscall.h>
diff --git a/sandbox/linux/services/yama.cc b/sandbox/linux/services/yama.cc
index 151f4bd..274443c 100644
--- a/sandbox/linux/services/yama.cc
+++ b/sandbox/linux/services/yama.cc
@@ -4,6 +4,7 @@
#include "sandbox/linux/services/yama.h"
+#include <errno.h>
#include <fcntl.h>
#include <sys/prctl.h>
#include <sys/stat.h>
diff --git a/sandbox/linux/syscall_broker/broker_host.cc b/sandbox/linux/syscall_broker/broker_host.cc
index e5957ed..8b78b1b 100644
--- a/sandbox/linux/syscall_broker/broker_host.cc
+++ b/sandbox/linux/syscall_broker/broker_host.cc
@@ -4,6 +4,7 @@
#include "sandbox/linux/syscall_broker/broker_host.h"
+#include <errno.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/stat.h>