diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-11-19 22:07:00 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-11-19 22:51:29 +0100 |
commit | 57b97576e47b9754131aa97acf27592888106a66 (patch) | |
tree | 95cb74af6114a8f4b0ae25a4d381a5023535ba7f /package/iproute2/0002-Add-missing-sys-types.h-include.patch | |
parent | 868970bbaeba22fd8911ed5d32a7f9882d2f04b1 (diff) | |
download | buildroot-57b97576e47b9754131aa97acf27592888106a66.tar.gz buildroot-57b97576e47b9754131aa97acf27592888106a66.zip |
iproute2: fix build with musl
This commit adds two patches to the iproute2 package that are
necessary to build it against the musl C library. Both patches have
been submitted upstream.
Fixes:
http://autobuild.buildroot.org/results/5d3/5d3f8c2242e9a89bb545166fc7d70429d2cddd42/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/iproute2/0002-Add-missing-sys-types.h-include.patch')
-rw-r--r-- | package/iproute2/0002-Add-missing-sys-types.h-include.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/iproute2/0002-Add-missing-sys-types.h-include.patch b/package/iproute2/0002-Add-missing-sys-types.h-include.patch new file mode 100644 index 0000000000..ef918140da --- /dev/null +++ b/package/iproute2/0002-Add-missing-sys-types.h-include.patch @@ -0,0 +1,38 @@ +From 560dee4b4be54699c0c9679771c9e0d61e4db80a Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Thu, 19 Nov 2015 17:48:55 +0100 +Subject: [PATCH] Add missing <sys/types.h> include +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The u_intXX_t types are defined in <sys/types.h>, so it should be +included before using those types. Otherwise, with certain C +libraries, the build fails with: + +In file included from ../include/iptables.h:4:0, + from m_ipt.c:18: +../include/iptables_common.h:47:16: error: unknown type name ‘u_int32_t’ + #define __le32 u_int32_t + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + include/iptables_common.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/iptables_common.h b/include/iptables_common.h +index 9099667..2c27a4b 100644 +--- a/include/iptables_common.h ++++ b/include/iptables_common.h +@@ -43,6 +43,8 @@ extern char *lib_dir; + extern void init_extensions(void); + #endif + ++#include <sys/types.h> ++ + #define __be32 u_int32_t + #define __le32 u_int32_t + #define __be16 u_int16_t +-- +2.6.3 + |