summaryrefslogtreecommitdiff
path: root/iptables.h
diff options
context:
space:
mode:
authorRalph Sennhauser <ralph.sennhauser@gmail.com>2016-11-06 10:59:43 +0100
committerJo-Philipp Wich <jo@mein.io>2016-11-06 20:21:12 +0100
commit6015fc07618173bc9cc44890e0f9c86081c80848 (patch)
treee3aa572bfcabd08d6849181ae29d7b832f86427e /iptables.h
parent786b15ff1460e8611eaa35ec024efe08fd3a5ebe (diff)
downloadfirewall3-6015fc07618173bc9cc44890e0f9c86081c80848.tar.gz
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 <ralph.sennhauser@gmail.com>
Diffstat (limited to 'iptables.h')
-rw-r--r--iptables.h3
1 files changed, 3 insertions, 0 deletions
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 <libiptc/libiptc.h>
#include <libiptc/libip6tc.h>
#include <xtables.h>