Repository : ssh://git@diktynna/batctl
On branch : master
commit b0044a6b2f8a762387d9b7408b1fe528f21c4ad7 Author: Sven Eckelmann sven@narfation.org Date: Thu Jan 28 20:44:22 2021 +0100
batctl: Fix build of routing_algo against musl
glibc is including the headers for the rtnetlink functionality. But musl avoids this indirect include. The headers must therefore be included explicitely.
Fixes: e0ccb9b575d9 ("batctl: Switch active routing algo list to netlink") Signed-off-by: Sven Eckelmann sven@narfation.org
b0044a6b2f8a762387d9b7408b1fe528f21c4ad7 routing_algo.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/routing_algo.c b/routing_algo.c index 27458ff..b5e3ebb 100644 --- a/routing_algo.c +++ b/routing_algo.c @@ -9,6 +9,8 @@ #include <errno.h> #include <fcntl.h> #include <getopt.h> +#include <linux/if_link.h> +#include <linux/rtnetlink.h> #include <netinet/if_ether.h> #include <netlink/netlink.h> #include <netlink/genl/genl.h>