bpftool: Update to version 7.1.0
[openwrt/staging/noltari.git] / package / network / utils / bpftools / patches / 002-includes.patch
1 --- a/libbpf/include/linux/list.h
2 +++ b/libbpf/include/linux/list.h
3 @@ -3,6 +3,8 @@
4 #ifndef __LINUX_LIST_H
5 #define __LINUX_LIST_H
6
7 +#include <linux/types.h>
8 +
9 #define LIST_HEAD_INIT(name) { &(name), &(name) }
10 #define LIST_HEAD(name) \
11 struct list_head name = LIST_HEAD_INIT(name)
12 --- a/src/Makefile
13 +++ b/src/Makefile
14 @@ -73,10 +73,10 @@ CFLAGS += -W -Wall -Wextra -Wno-unused-p
15 CFLAGS += $(filter-out -Wswitch-enum -Wnested-externs,$(EXTRA_WARNINGS))
16 CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \
17 -I$(or $(OUTPUT),.) \
18 - -I$(LIBBPF_INCLUDE) \
19 -I$(srctree)/src/kernel/bpf/ \
20 -I$(srctree)/include \
21 - -I$(srctree)/include/uapi
22 + -I$(srctree)/include/uapi \
23 + -I$(LIBBPF_INCLUDE)
24 ifneq ($(BPFTOOL_VERSION),)
25 CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"'
26 endif