[PATCH] syscalls/prctl.c: Fix build with USE_SECCOMP disabled.

Vinson Lee <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
From: Vinson Lee <[email protected]>

This patch fixes this build error on CentOS 6.

  CC	syscalls/prctl.o
syscalls/prctl.c:48: error: expected ‘)’ before ‘int’
cc1: warnings being treated as errors
syscalls/prctl.c: In function ‘sanitise_prctl’:
syscalls/prctl.c:63: error: implicit declaration of function ‘do_set_seccomp’
syscalls/prctl.c:63: error: nested extern declaration of ‘do_set_seccomp’

Signed-off-by: Vinson Lee <[email protected]>
---
 syscalls/prctl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/syscalls/prctl.c b/syscalls/prctl.c
index 5c35036..182c458 100644
--- a/syscalls/prctl.c
+++ b/syscalls/prctl.c
@@ -18,6 +18,7 @@
 #include "shm.h"
 #include "compat.h"
 #include "utils.h"
+#include "trinity.h"
 
 #define NR_PRCTL_OPTS 28
 static int prctl_opts[NR_PRCTL_OPTS] = {
-- 
1.7.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.