* [PATCH] samples/seccomp: fix include of seccomp.h
@ 2017-01-06 10:56 Madalin Bucur
0 siblings, 0 replies; only message in thread
From: Madalin Bucur @ 2017-01-06 10:56 UTC (permalink / raw)
To: linux-kernel
Address compilation issues on arm64:
samples/seccomp/bpf-fancy.c:13:27: error: linux/seccomp.h: No such file or directory
samples/seccomp/bpf-fancy.c: In function 'main':
samples/seccomp/bpf-fancy.c:36: error: invalid use of undefined type 'struct seccomp_data'
samples/seccomp/bpf-fancy.c:37: error: 'SECCOMP_RET_ALLOW' undeclared (first use in this function)
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
---
samples/seccomp/bpf-fancy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/seccomp/bpf-fancy.c b/samples/seccomp/bpf-fancy.c
index e8b24f4..05306a1 100644
--- a/samples/seccomp/bpf-fancy.c
+++ b/samples/seccomp/bpf-fancy.c
@@ -10,7 +10,7 @@
*/
#include <linux/filter.h>
-#include <linux/seccomp.h>
+#include <linux/uapi/seccomp.h>
#include <linux/unistd.h>
#include <stdio.h>
#include <string.h>
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-06 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-06 10:56 [PATCH] samples/seccomp: fix include of seccomp.h Madalin Bucur
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).