Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 231e4e6a4bf3e825772dd3e74e9cd323bb9512e3 Author: Sven Eckelmann sven@narfation.org Date: Sat Dec 3 15:24:30 2016 +0100
batctl: Fix netlink header includes for musl
musl and uClibc in combination with libnl-tiny don't always include the required files to have external types defined in their headers. Modify the includes to work around this problem.
Signed-off-by: Sven Eckelmann sven@narfation.org
231e4e6a4bf3e825772dd3e74e9cd323bb9512e3 icmp_helper.c | 1 + icmp_helper.h | 1 - interface.c | 1 + 3 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/icmp_helper.c b/icmp_helper.c index 87c6e15..bf48cea 100644 --- a/icmp_helper.c +++ b/icmp_helper.c @@ -25,6 +25,7 @@ #include <errno.h> #include <linux/filter.h> #include <linux/if_packet.h> +#include <linux/rtnetlink.h> #include <net/ethernet.h> #include <netinet/ether.h> #include <stdbool.h> diff --git a/icmp_helper.h b/icmp_helper.h index 37971da..cdaf554 100644 --- a/icmp_helper.h +++ b/icmp_helper.h @@ -24,7 +24,6 @@
#include "main.h"
-#include <linux/if_link.h> #include <net/ethernet.h> #include <net/if.h> #include <netlink/netlink.h> diff --git a/interface.c b/interface.c index 9d5590d..7258475 100644 --- a/interface.c +++ b/interface.c @@ -30,6 +30,7 @@ #include <dirent.h> #include <net/if.h> #include <linux/if_link.h> +#include <linux/rtnetlink.h> #include <netlink/netlink.h> #include <netlink/msg.h> #include <netlink/attr.h>