aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/seccomp.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-04-18 11:30:56 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-19 10:47:45 -0700
commit42a17ad2762f465d291c3bc0b6ed2b3738f65481 (patch)
treef3a733a403f35c2c68e5ce021974c2051d230bdf /include/linux/seccomp.h
parentDon't set relatime when noatime is specified (diff)
downloadlinux-dev-42a17ad2762f465d291c3bc0b6ed2b3738f65481.tar.xz
linux-dev-42a17ad2762f465d291c3bc0b6ed2b3738f65481.zip
<linux/seccomp.h> needs to include <linux/errno.h>.
<linux/seccomp.h> uses EINVAL so should include <linux/errno.h>. This fixes a build error on 64-bit MIPS if CONFIG_SECCOMP is disabled. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/seccomp.h')
-rw-r--r--include/linux/seccomp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 262a8dccfa81..167c33361d9c 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -21,6 +21,8 @@ extern long prctl_set_seccomp(unsigned long);
#else /* CONFIG_SECCOMP */
+#include <linux/errno.h>
+
typedef struct { } seccomp_t;
#define secure_computing(x) do { } while (0)