libbpf-tools: add libbpf's Linux uapi headers to build
Do not rely on up-to-date UAPI headers on the system. Instead use the most
recent ones that are used for libbpf's own build.
@@ -5,7 +5,7 @@ LLVM_STRIP ?= llvm-strip
BPFTOOL ?= bin/bpftool
LIBBPF_SRC := $(abspath ../src/cc/libbpf/src)
LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
-INCLUDES := -I$(OUTPUT)
+INCLUDES := -I$(OUTPUT) -I../src/cc/libbpf/include/uapi
CFLAGS := -g -O2 -Wall
INSTALL ?= install
prefix ?= /usr/local
