kumquat-buildroot/package/iproute2/0002-Add-missing-sys-types.h-include.patch
Thomas Petazzoni 57b97576e4 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>
2015-11-19 22:51:29 +01:00

39 lines
1.1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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