diff options
author | Brendan Heading <brendanheading@gmail.com> | 2015-08-31 20:29:02 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-10-04 12:25:45 +0200 |
commit | 208e687ced05d479bb523626af103a6de07dc08e (patch) | |
tree | 7335307baf0e20e06493c47eba6fb768460db188 /package/iptables/0004-include-remove-libc5-support-code.patch | |
parent | 2d8a254dd76de970776ab63fd65bfee75f44b13c (diff) | |
download | buildroot-208e687ced05d479bb523626af103a6de07dc08e.tar.gz buildroot-208e687ced05d479bb523626af103a6de07dc08e.zip |
package/iptables: fix build on musl
Fixes:
http://autobuild.buildroot.net/results/68b/68bf8830f87ab32f4fd650c9dd4a8c80592983a9/
http://autobuild.buildroot.net/results/d9b/d9bb677fb5510adf05ffb4afbc63ead83d7e18dd/
http://autobuild.buildroot.net/results/4b8/4b80b6d0131b624301a5cfcd5541897f411043c9/
.. and others.
This patch includes two backported patches from iptables git, plus one
pending patch not integrated yet.
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/iptables/0004-include-remove-libc5-support-code.patch')
-rw-r--r-- | package/iptables/0004-include-remove-libc5-support-code.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/package/iptables/0004-include-remove-libc5-support-code.patch b/package/iptables/0004-include-remove-libc5-support-code.patch new file mode 100644 index 0000000000..8137ece2a8 --- /dev/null +++ b/package/iptables/0004-include-remove-libc5-support-code.patch @@ -0,0 +1,51 @@ +From 401673e9d37ea1e6da0bc335b1d7a2bbf445c690 Mon Sep 17 00:00:00 2001 +From: Felix Janda <felix.janda@posteo.de> +Date: Sat, 2 May 2015 21:51:38 +0200 +Subject: [PATCH 2/3] include: remove libc5 support code + +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. + +Backported from : +http://git.netfilter.org/iptables/commit/?id=0bb1859e2d6dd79a0a59c3ee65f6a78cba118b86 + +Upstream-Status: backport +Signed-off-by: Florian Westphal <fw@strlen.de> +Signed-off-by: Brendan Heading <brendanheading@gmail.com> +--- + include/libiptc/ipt_kernel_headers.h | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/include/libiptc/ipt_kernel_headers.h b/include/libiptc/ipt_kernel_headers.h +index 18861fe..a5963e9 100644 +--- a/include/libiptc/ipt_kernel_headers.h ++++ b/include/libiptc/ipt_kernel_headers.h +@@ -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> +@@ -13,15 +12,4 @@ + #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 +-- +2.4.3 + |