board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / iprutils / 0003-iprlib-fixes-for-compatibility-with-musl.patch
blob0fe882fb8ea7294de303fb49cacf0002d7412d5c
1 From df3b2b74ed7b49d74f5a5ec5687bcc3188d3b319 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sun, 7 Feb 2016 14:10:44 +0100
4 Subject: [PATCH] iprlib: fixes for compatibility with musl
6 <bits/sockaddr.h> is an internal C library header, which is not
7 guaranteed to be available in all C libraries, so it shouldn't be
8 included, otherwise iprutils cannot be built with musl.
10 <limits.h> is needed to get the definition of PATH_MAX.
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 ---
14 iprlib.h | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/iprlib.h b/iprlib.h
18 index 16fe1e1..73aa1ce 100644
19 --- a/iprlib.h
20 +++ b/iprlib.h
21 @@ -46,9 +46,9 @@
22 #include <asm/byteorder.h>
23 #include <sys/mman.h>
24 #include <paths.h>
25 -#include <bits/sockaddr.h>
26 #include <linux/netlink.h>
27 #include <time.h>
28 +#include <limits.h>
30 typedef uint8_t u8;
31 typedef uint16_t u16;
32 --
33 2.6.4