Skip to contentSkip to conversation

bpf_glue: include errno.h

PATCH New Juhee Kang 1 participant 1 message Jul 18, 2022

Subsystems (3)
lore
Share & tools
lore

Juhee Kang

author
#0 lore raw

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")
---
 lib/bpf_glue.c | 1 +
 1 file changed, 1 insertion(+)
lib/bpf_glue.c +1 -0
index c1cf351b..88a24751 100644
@@ -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