Hi! I found that there is no way to include library headers without doing PREFIX=<some tmp dir> make install with some prefix to try a new version of the library, this patch fixes this. Allows importing headers directly from src/ аnd it seems to me that this does not violate the current behavior. Use local includes inside the library Signed-off-by: Sergey Kacheev <s.kacheev@xxxxxxxxx> --- src/bpf_tracing.h | 2 +- src/usdt.bpf.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bpf_tracing.h b/src/bpf_tracing.h index be076a4..3803479 100644 --- a/src/bpf_tracing.h +++ b/src/bpf_tracing.h @@ -2,7 +2,7 @@ #ifndef __BPF_TRACING_H__ #define __BPF_TRACING_H__ -#include <bpf/bpf_helpers.h> +#include "bpf_helpers.h" /* Scan the ARCH passed in from ARCH env variable (see Makefile) */ #if defined(__TARGET_ARCH_x86) diff --git a/src/usdt.bpf.h b/src/usdt.bpf.h index 0bd4c13..f676330 100644 --- a/src/usdt.bpf.h +++ b/src/usdt.bpf.h @@ -4,8 +4,8 @@ #define __USDT_BPF_H__ #include <linux/errno.h> -#include <bpf/bpf_helpers.h> -#include <bpf/bpf_tracing.h> +#include "bpf_helpers.h" +#include "bpf_tracing.h" /* Below types and maps are internal implementation details of libbpf's USDT * support and are subjects to change. Also, bpf_usdt_xxx() API helpers should -- 2.39.2