From: Juhee Kang Date: Mon, 18 Jul 2022 15:58:27 +0000 (+0900) Subject: bpf_glue: include errno.h X-Git-Tag: v5.19.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8decf82af07591833f89004e9b72cc39c1b5c52;p=thirdparty%2Fiproute2.git 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 Signed-off-by: Stephen Hemminger --- diff --git a/lib/bpf_glue.c b/lib/bpf_glue.c index c1cf351b7..88a247513 100644 --- a/lib/bpf_glue.c +++ b/lib/bpf_glue.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "bpf_util.h" #ifdef HAVE_LIBBPF