Skip to content

Commit

Permalink
<linux/seccomp.h> needs to include <linux/errno.h>.
Browse files Browse the repository at this point in the history
<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>
  • Loading branch information
Ralf Baechle authored and Linus Torvalds committed Apr 19, 2009
1 parent 613cbe3 commit 42a17ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/seccomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42a17ad

Please sign in to comment.