File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ all: common_params.o common_user_bpf_xdp.o common_libbpf.o
66CFLAGS := -g -Wall
77
88LIBBPF_DIR = ../libbpf/src/
9- CFLAGS += -I$(LIBBPF_DIR ) /root/usr/include/
9+ CFLAGS += -I$(LIBBPF_DIR ) /root/usr/include/ -I../headers
1010# TODO: Do we need to make libbpf from this make file too?
1111
1212common_params.o : common_params.c common_params.h
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ EXTRA_DEPS +=
3939KERN_USER_H ?= $(wildcard common_kern_user.h)
4040
4141CFLAGS ?= -I$(LIBBPF_DIR ) /root/usr/include/ -g
42+ # Extra include for Ubuntu issue #44
43+ CFLAGS += -I/usr/include/x86_64-linux-gnu
4244CFLAGS += -I../headers/
4345LDFLAGS ?= -L$(LIBBPF_DIR )
4446
Original file line number Diff line number Diff line change 11/* SPDX-License-Identifier: GPL-2.0 */
22/* Copied from $(LINUX)/tools/testing/selftests/bpf/bpf_helpers.h */
3+
4+ /* Added to fix compilation on old Ubuntu systems - please preserve when
5+ updating file! */
6+ #ifndef __always_inline
7+ # define __always_inline inline __attribute__((always_inline))
8+ #endif
9+
310#ifndef __BPF_HELPERS_H
411#define __BPF_HELPERS_H
512
You can’t perform that action at this time.
0 commit comments