From: Eric Leblond Date: Mon, 28 Dec 2020 08:41:09 +0000 (+0100) Subject: ebpf: avoid need of 32 bit header X-Git-Tag: suricata-7.0.0-beta1~1922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfe5785bfa630905ae52267baeae5453231f9b2d;p=thirdparty%2Fsuricata.git ebpf: avoid need of 32 bit header Compilation of xdp_lb.c was failing in some case with the following error: /usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found This patch add some define to be able to skip recursive inclusion of header files leading to the problem. --- diff --git a/ebpf/xdp_lb.c b/ebpf/xdp_lb.c index 2ee924572d..dc1d8660c4 100644 --- a/ebpf/xdp_lb.c +++ b/ebpf/xdp_lb.c @@ -23,6 +23,9 @@ #include #include #include +/* Workaround to avoid the need of 32bit headers */ +#define _LINUX_IF_H +#define IFNAMSIZ 16 #include #include #include