1 From 5f1379ff68bfedb56309527bee266a591b27a19e Mon Sep 17 00:00:00 2001
2 From: Felix Janda <felix.janda@posteo.de>
3 Date: Sat, 16 May 2015 10:31:41 +0200
4 Subject: [PATCH 2/2] src: Remove support for libc5
6 Fixes compilation with musl libc
8 Backport of upstream commit f4ab8f63f11a72f14687a6646d04ae1bae3fa45f
9 Upstream status: backport
10 Signed-off-by: Felix Janda <felix.janda@posteo.de>
11 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
12 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
14 include/libarptc/arpt_kernel_headers.h | 12 ------------
15 libarptc/libarptc.c | 4 ----
16 2 files changed, 16 deletions(-)
18 diff --git a/include/libarptc/arpt_kernel_headers.h b/include/libarptc/arpt_kernel_headers.h
19 index 442cc54..140e999 100644
20 --- a/include/libarptc/arpt_kernel_headers.h
21 +++ b/include/libarptc/arpt_kernel_headers.h
26 -#if defined(__GLIBC__) && __GLIBC__ == 2
27 #include <netinet/ip.h>
28 #include <netinet/in.h>
29 #include <netinet/ip_icmp.h>
31 #include <netinet/ether.h>
33 #include <sys/types.h>
35 -#include <sys/socket.h>
36 -#include <linux/ip.h>
37 -#include <linux/in.h>
38 -#include <linux/if.h>
39 -#include <linux/icmp.h>
40 -#include <linux/tcp.h>
41 -#include <linux/udp.h>
42 -#include <linux/types.h>
43 -#include <linux/in6.h>
47 diff --git a/libarptc/libarptc.c b/libarptc/libarptc.c
48 index 701bae0..9c5a5b0 100644
49 --- a/libarptc/libarptc.c
50 +++ b/libarptc/libarptc.c
55 -#if !defined(__GLIBC__) || (__GLIBC__ < 2)
56 -typedef unsigned int socklen_t;
59 #include "libarptc/libarptc.h"