Skip to contentSkip to conversation

Remove support for libc5

PATCH In review Felix Janda 1 participant 1 message May 16, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Remove support for libc5

Fixes compilation with musl libc

---
 include/libarptc/arpt_kernel_headers.h | 12 ------------
 libarptc/libarptc.c                    |  4 ----
 2 files changed, 16 deletions(-)
include/libarptc/arpt_kernel_headers.h +0 -12
index 442cc54..140e999 100644
@@ -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>
@@ -14,16 +13,5 @@
 #include <netinet/ether.h>
 #include <net/if.h>
 #include <sys/types.h>
-#else
-#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
libarptc/libarptc.c +0 -4
index f03dd0b..71602c2 100644
@@ -23,10 +23,6 @@
 #define inline
 #endif
 
-#if !defined(__GLIBC__) || (__GLIBC__ < 2)
-typedef unsigned int socklen_t;
-#endif
-
 #include "libarptc/libarptc.h"
 
 #define IP_VERSION	4
Signature · 1 line
2.3.6