diff --git a/runtime/src/bpf_map/userspace/prog_array.cpp b/runtime/src/bpf_map/userspace/prog_array.cpp index 4bd4fa35..6a9b0538 100644 --- a/runtime/src/bpf_map/userspace/prog_array.cpp +++ b/runtime/src/bpf_map/userspace/prog_array.cpp @@ -4,10 +4,12 @@ * All rights reserved. */ -#if __linux__ -#include -#include +#if __linux__ +#if BPFTIME_BUILD_WITH_LIBBPF +#include "bpf/bpf.h" +#include "linux/bpf.h" #include +#endif #include #elif __APPLE__ #include "bpftime_epoll.h"