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: ac4e0913be ("bpf: Export bpf syscall wrapper")
Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Juhee Kang
2022-07-19 00:58:27 +09:00
committed by Stephen Hemminger
parent 71178ae0ff
commit f8decf82af

View 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