diff options
author | Mickaël Salaün <mic@digikod.net> | 2017-02-08 21:27:44 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-02-13 17:22:35 -0300 |
commit | af392a8f5399e831cb502ff210dacef8b38ca513 (patch) | |
tree | 62bc1967c6f7d1d6babe71daa6bd46cde8e8292e /samples | |
parent | 5eae7d842510d33d4410c062280eda6c935403dd (diff) | |
download | lwn-af392a8f5399e831cb502ff210dacef8b38ca513.tar.gz lwn-af392a8f5399e831cb502ff210dacef8b38ca513.zip |
samples/bpf: Add missing header
Include unistd.h to define __NR_getuid and __NR_getsid.
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Acked-by: Joe Stringer <joe@ovn.org>
Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Link: http://lkml.kernel.org/r/20170208202744.16274-4-mic@digikod.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'samples')
-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 |