Skip to contentSkip to conversation

extensions: libxt_bpf: fix missing __NR_bpf declaration

PATCH Applied Rafael Buchbinder 2 participants 2 messages Sep 10, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extensions: libxt_bpf: fix missing __NR_bpf declaration

This include is needed to compile the bpf_obj_get function properly, as it brings in the __NR_bpf declaration.

---
 extensions/libxt_bpf.c | 2 ++
 1 file changed, 2 insertions(+)
extensions/libxt_bpf.c +2 -0
index 92c445e8..9510c190 100644
@@ -22,6 +22,8 @@
 #include <linux/bpf.h>
 #endif
 
+#include <linux/unistd.h>
+
 #define BCODE_FILE_MAX_LEN_B	1024
 
 enum {
Signature · 1 line
2.14.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Rafael Buchbinder

This include is needed to compile the bpf_obj_get function properly, as it brings in the __NR_bpf declaration.

Applied, thanks.