]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: libxt_bpf: fix missing __NR_bpf declaration
authorRafael Buchbinder <rafi@rbk.ms>
Sun, 10 Sep 2017 07:44:53 +0000 (10:44 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 10 Sep 2017 20:06:02 +0000 (22:06 +0200)
This include is needed to compile the bpf_obj_get function properly,
as it brings in the __NR_bpf declaration.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_bpf.c

index 92c445e8a96c6261258636fb35e9a3c80a807689..9510c190f3159c7a4f26d896669801950edf82e0 100644 (file)
@@ -22,6 +22,8 @@
 #include <linux/bpf.h>
 #endif
 
+#include <linux/unistd.h>
+
 #define BCODE_FILE_MAX_LEN_B   1024
 
 enum {