Skip to content

Commit 77edd02

Browse files
committed
common.mk: Add /usr/include/x86_64-linux-gnu to include path
Seems that on Ubuntu some of the kernel headers are in that directory, and that it is not in the include path by default. Fixes one of the issues in #44. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
1 parent c568e1a commit 77edd02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ EXTRA_DEPS +=
3838
# BPF-prog kern and userspace shares struct via header file:
3939
KERN_USER_H ?= $(wildcard common_kern_user.h)
4040

41-
CFLAGS ?= -I$(LIBBPF_DIR)/root/usr/include/
41+
CFLAGS ?= -I$(LIBBPF_DIR)/root/usr/include/ -I/usr/include/x86_64-linux-gnu
4242
CFLAGS += -I../headers/
4343
LDFLAGS ?= -L$(LIBBPF_DIR)
4444

0 commit comments

Comments
 (0)