summaryrefslogtreecommitdiff
path: root/package/iprutils
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-07 14:13:07 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-07 14:14:03 +0100
commita7b9b632fd1f9306dcb7d426ada8cf86001da424 (patch)
tree454096e717c1db2d2fee7ca626d8d67feb9d02de /package/iprutils
parent0d80aee73d977dfdc37413ed61ac1d3d29ad3540 (diff)
package/iprutils: add patch to fix musl build
This commit adds a patch to the iprutils to fix the build with the musl C library. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: reformatted the patch with Git, added a better commit log.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/iprutils')
-rw-r--r--package/iprutils/0003-iprlib-fixes-for-compatibility-with-musl.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/iprutils/0003-iprlib-fixes-for-compatibility-with-musl.patch b/package/iprutils/0003-iprlib-fixes-for-compatibility-with-musl.patch
new file mode 100644
index 000000000..0fe882fb8
--- /dev/null
+++ b/package/iprutils/0003-iprlib-fixes-for-compatibility-with-musl.patch
@@ -0,0 +1,34 @@
+From df3b2b74ed7b49d74f5a5ec5687bcc3188d3b319 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sun, 7 Feb 2016 14:10:44 +0100
+Subject: [PATCH] iprlib: fixes for compatibility with musl
+
+<bits/sockaddr.h> is an internal C library header, which is not
+guaranteed to be available in all C libraries, so it shouldn't be
+included, otherwise iprutils cannot be built with musl.
+
+<limits.h> is needed to get the definition of PATH_MAX.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ iprlib.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/iprlib.h b/iprlib.h
+index 16fe1e1..73aa1ce 100644
+--- a/iprlib.h
++++ b/iprlib.h
+@@ -46,9 +46,9 @@
+ #include <asm/byteorder.h>
+ #include <sys/mman.h>
+ #include <paths.h>
+-#include <bits/sockaddr.h>
+ #include <linux/netlink.h>
+ #include <time.h>
++#include <limits.h>
+
+ typedef uint8_t u8;
+ typedef uint16_t u16;
+--
+2.6.4
+