diff --git a/src/shared/bpf-link.h b/src/shared/bpf-link.h index 402327a5a3..53711e4905 100644 --- a/src/shared/bpf-link.h +++ b/src/shared/bpf-link.h @@ -2,6 +2,8 @@ #pragma once +#if HAVE_LIBBPF + #include #include @@ -17,3 +19,5 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(struct bpf_link *, bpf_link_free); struct ring_buffer* bpf_ring_buffer_free(struct ring_buffer *rb); DEFINE_TRIVIAL_CLEANUP_FUNC(struct ring_buffer *, bpf_ring_buffer_free); + +#endif