]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bpf_glue: include errno.h
authorJuhee Kang <claudiajkang@gmail.com>
Mon, 18 Jul 2022 15:58:27 +0000 (00:58 +0900)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 25 Jul 2022 19:07:16 +0000 (12:07 -0700)
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 <claudiajkang@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/bpf_glue.c

index c1cf351b7359ce1e7b48c743500c78ecf3f155cf..88a247513d996dca54a9dc4624aba2cdddcbb638 100644 (file)
@@ -7,6 +7,7 @@
 #include <sys/syscall.h>
 #include <limits.h>
 #include <unistd.h>
+#include <errno.h>
 
 #include "bpf_util.h"
 #ifdef HAVE_LIBBPF