bpf_glue: include errno.h
Subsystems (3)
PATCH 1/1 bpf_glue: include errno.h
If __NR_bpf is not enabled, bpf() function set errno and return -1. Thus, this patch includes the header.
Fixes ac4e0913beb1 ("bpf: Export bpf syscall wrapper")
Signed-off-by Juhee Kang <[email protected]>
--- lib/bpf_glue.c | 1 + 1 file changed, 1 insertion(+)
lib/bpf_glue.c +1 -0
@@ -7,6 +7,7 @@#include <sys/syscall.h> #include <limits.h> #include <unistd.h> +#include <errno.h> #include "bpf_util.h" #ifdef HAVE_LIBBPF
Signature · 1 line
2.34.1