* [PATCH] <linux/seccomp.h> needs to include <linux/errno.h>.
@ 2009-04-18 9:30 Ralf Baechle
0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 2009-04-18 9:30 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, linux-mips
<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>
include/linux/seccomp.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 262a8dc..167c333 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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-18 9:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18 9:30 [PATCH] <linux/seccomp.h> needs to include <linux/errno.h> Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).