python: make hashlib and readline modules really optional
[buildroot-gz.git] / package / iproute2 / 0002-Add-missing-sys-types.h-include.patch
blobef918140dae130845dd67553ab5523d6f8b4c30f
1 From 560dee4b4be54699c0c9679771c9e0d61e4db80a Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 19 Nov 2015 17:48:55 +0100
4 Subject: [PATCH] Add missing <sys/types.h> include
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 The u_intXX_t types are defined in <sys/types.h>, so it should be
10 included before using those types. Otherwise, with certain C
11 libraries, the build fails with:
13 In file included from ../include/iptables.h:4:0,
14 from m_ipt.c:18:
15 ../include/iptables_common.h:47:16: error: unknown type name ‘u_int32_t’
16 #define __le32 u_int32_t
18 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19 ---
20 include/iptables_common.h | 2 ++
21 1 file changed, 2 insertions(+)
23 diff --git a/include/iptables_common.h b/include/iptables_common.h
24 index 9099667..2c27a4b 100644
25 --- a/include/iptables_common.h
26 +++ b/include/iptables_common.h
27 @@ -43,6 +43,8 @@ extern char *lib_dir;
28 extern void init_extensions(void);
29 #endif
31 +#include <sys/types.h>
33 #define __be32 u_int32_t
34 #define __le32 u_int32_t
35 #define __be16 u_int16_t
36 --
37 2.6.3