Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/iproute2/files/
Date: Sun, 03 Jan 2016 16:19:26
Message-Id: 1451837903.ad8a8ef884bc60409d3cbbb1256fb5395dc8087b.anarchy@gentoo
1 commit: ad8a8ef884bc60409d3cbbb1256fb5395dc8087b
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 3 16:18:23 2016 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 3 16:18:23 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=ad8a8ef8
7
8 iproute2 - add missing header for iptables_common.h when building with -iptables
9
10 .../files/iproute2-4.3.0-musl-noiptables.patch | 38 ++++++++++++++++++++++
11 1 file changed, 38 insertions(+)
12
13 diff --git a/sys-apps/iproute2/files/iproute2-4.3.0-musl-noiptables.patch b/sys-apps/iproute2/files/iproute2-4.3.0-musl-noiptables.patch
14 new file mode 100644
15 index 0000000..ef91814
16 --- /dev/null
17 +++ b/sys-apps/iproute2/files/iproute2-4.3.0-musl-noiptables.patch
18 @@ -0,0 +1,38 @@
19 +From 560dee4b4be54699c0c9679771c9e0d61e4db80a Mon Sep 17 00:00:00 2001
20 +From: Thomas Petazzoni <thomas.petazzoni@××××××××××××××.com>
21 +Date: Thu, 19 Nov 2015 17:48:55 +0100
22 +Subject: [PATCH] Add missing <sys/types.h> include
23 +MIME-Version: 1.0
24 +Content-Type: text/plain; charset=UTF-8
25 +Content-Transfer-Encoding: 8bit
26 +
27 +The u_intXX_t types are defined in <sys/types.h>, so it should be
28 +included before using those types. Otherwise, with certain C
29 +libraries, the build fails with:
30 +
31 +In file included from ../include/iptables.h:4:0,
32 + from m_ipt.c:18:
33 +../include/iptables_common.h:47:16: error: unknown type name ‘u_int32_t’
34 + #define __le32 u_int32_t
35 +
36 +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@××××××××××××××.com>
37 +---
38 + include/iptables_common.h | 2 ++
39 + 1 file changed, 2 insertions(+)
40 +
41 +diff --git a/include/iptables_common.h b/include/iptables_common.h
42 +index 9099667..2c27a4b 100644
43 +--- a/include/iptables_common.h
44 ++++ b/include/iptables_common.h
45 +@@ -43,6 +43,8 @@ extern char *lib_dir;
46 + extern void init_extensions(void);
47 + #endif
48 +
49 ++#include <sys/types.h>
50 ++
51 + #define __be32 u_int32_t
52 + #define __le32 u_int32_t
53 + #define __be16 u_int16_t
54 +--
55 +2.6.3
56 +