extensions: libxt_bpf: fix missing __NR_bpf declaration
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
@@ -22,6 +22,8 @@#include <linux/bpf.h> #endif +#include <linux/unistd.h> +#define BCODE_FILE_MAX_LEN_B 1024enum {
Signature · 1 line
2.14.1
Quoted 2 lines · Rafael Buchbinder
This include is needed to compile the
bpf_obj_getfunction properly, as it brings in the__NR_bpfdeclaration.
Applied, thanks.