diff options
author | Mickaël Salaün <[email protected]> | 2017-02-08 21:27:44 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 17:22:35 -0300 |
commit | af392a8f5399e831cb502ff210dacef8b38ca513 (patch) | |
tree | 62bc1967c6f7d1d6babe71daa6bd46cde8e8292e | |
parent | 5eae7d842510d33d4410c062280eda6c935403dd (diff) |
samples/bpf: Add missing header
Include unistd.h to define __NR_getuid and __NR_getsid.
Signed-off-by: Mickaël Salaün <[email protected]>
Acked-by: Joe Stringer <[email protected]>
Acked-by: Wang Nan <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | samples/bpf/tracex5_kern.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/tracex5_kern.c b/samples/bpf/tracex5_kern.c index fd12d7154d42..7e4cf74553ff 100644 --- a/samples/bpf/tracex5_kern.c +++ b/samples/bpf/tracex5_kern.c @@ -8,6 +8,7 @@ #include <linux/version.h> #include <uapi/linux/bpf.h> #include <uapi/linux/seccomp.h> +#include <uapi/linux/unistd.h> #include "bpf_helpers.h" #define PROG(F) SEC("kprobe/"__stringify(F)) int bpf_func_##F |