sysklogd: fix build on musl
[buildroot-gz.git] / package / arptables / 0003-src-Remove-support-for-libc5.patch
blob15e893dd0cccf28733f31cb4a3d2f0812c1d0608
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>
13 ---
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
22 @@ -5,7 +5,6 @@
24 #include <limits.h>
26 -#if defined(__GLIBC__) && __GLIBC__ == 2
27 #include <netinet/ip.h>
28 #include <netinet/in.h>
29 #include <netinet/ip_icmp.h>
30 @@ -14,16 +13,5 @@
31 #include <netinet/ether.h>
32 #include <net/if.h>
33 #include <sys/types.h>
34 -#else
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>
44 -#endif
46 #endif
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
51 @@ -23,10 +23,6 @@
52 #define inline
53 #endif
55 -#if !defined(__GLIBC__) || (__GLIBC__ < 2)
56 -typedef unsigned int socklen_t;
57 -#endif
59 #include "libarptc/libarptc.h"
61 #define IP_VERSION 4
62 --
63 2.4.3