diff options
author | Juhee Kang <claudiajkang@gmail.com> | 2022-07-19 00:58:27 +0900 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2022-07-25 12:07:16 -0700 |
commit | f8decf82af07591833f89004e9b72cc39c1b5c52 (patch) | |
tree | 7ad6aee9fadf50da6be0f6ea6aea1be0f8f0056b | |
parent | 71178ae0ff0bbb898aed7d89c1c14e8de8315304 (diff) | |
download | iproute2-f8decf82af07591833f89004e9b72cc39c1b5c52.tar.gz |
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 <claudiajkang@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | lib/bpf_glue.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <sys/syscall.h> #include <limits.h> #include <unistd.h> +#include <errno.h> #include "bpf_util.h" #ifdef HAVE_LIBBPF |