]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
include: remove libc5 support code
authorFelix Janda <felix.janda@posteo.de>
Sat, 2 May 2015 19:51:38 +0000 (21:51 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 8 May 2015 14:02:56 +0000 (16:02 +0200)
Current code makes the assumption that !defined(__GLIBC__) means libc5
which is very unlikely the case nowadays.

Fixes compile error because of conflict between kernel and musl headers.

Signed-off-by: Florian Westphal <fw@strlen.de>
include/libiptc/ipt_kernel_headers.h

index 18861fe52f75897b634ec967dddbaf8bc248bf20..a5963e9441fcdf415a824402d12dcc7b08010902 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <limits.h>
 
-#if defined(__GLIBC__) && __GLIBC__ == 2
 #include <netinet/ip.h>
 #include <netinet/in.h>
 #include <netinet/ip_icmp.h>
 #include <netinet/udp.h>
 #include <net/if.h>
 #include <sys/types.h>
-#else /* libc5 */
-#include <sys/socket.h>
-#include <linux/ip.h>
-#include <linux/in.h>
-#include <linux/if.h>
-#include <linux/icmp.h>
-#include <linux/tcp.h>
-#include <linux/udp.h>
-#include <linux/types.h>
-#include <linux/in6.h>
-#endif
 #endif