ksnoop: remove duplicate include
authorDave Marchevsky <davemarchevsky@fb.com>
Thu, 23 Sep 2021 02:54:48 +0000 (22:54 -0400)
committerGitHub <noreply@github.com>
Thu, 23 Sep 2021 02:54:48 +0000 (22:54 -0400)
`ksnoop` is the only libbpf tool which is including both `<linux/bpf.h>` and `<bpf/bpf.h>` - the rest of the tools just include the latter

build fails for me because of redefinition errors as a result. Let's use `<bpf/bpf.h>` like the rest of the tools

libbpf-tools/ksnoop.c

index f6d4d8e..29f6fcd 100644 (file)
@@ -4,7 +4,6 @@
 #include <ctype.h>
 #include <errno.h>
 #include <getopt.h>
-#include <linux/bpf.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>