From 6015fc07618173bc9cc44890e0f9c86081c80848 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 6 Nov 2016 10:59:43 +0100 Subject: [PATCH] musl-compat: avoid kernel header conflicts The conflict between Musls net/if.h and linux/if.h is an old well known one and taken care of by a series of linux-headers patches in OpenWrt. Since Linux 4.8-rc5 Firewall3 also indirectly pulls in linux/in.h and linux/in6.h leading to new conflicts. As Firewall3 is fine with just the libc headers prevent inclusion of the corresponding kernel headers. Signed-off-by: Ralph Sennhauser --- iptables.h | 3 +++ options.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/iptables.h b/iptables.h index a2c733d..491e598 100644 --- a/iptables.h +++ b/iptables.h @@ -21,6 +21,9 @@ #define _GNU_SOURCE /* RTLD_NEXT */ +#define _LINUX_IF_H +#define _LINUX_IN_H +#define _LINUX_IN6_H #include #include #include diff --git a/options.h b/options.h index 6c9c0b2..307c5af 100644 --- a/options.h +++ b/options.h @@ -32,6 +32,8 @@ #include #include #include +#define _LINUX_IN_H +#define _LINUX_IN6_H #include #include -- 2.11.0