From dfe5785bfa630905ae52267baeae5453231f9b2d Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 28 Dec 2020 09:41:09 +0100 Subject: [PATCH] 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. --- ebpf/xdp_lb.c | 3 +++ 1 file changed, 3 insertions(+) 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