summaryrefslogtreecommitdiffstats
path: root/package/netplug/0002-add-missing-time-include.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-05 22:52:36 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-08 23:48:13 +0200
commit225e1681cc000d904e5e98a3fcff974aac4e8d71 (patch)
treeeb6b7e74df7018edc18f31e93e862598e9a5ddcc /package/netplug/0002-add-missing-time-include.patch
parent0bb83105d2a2915bd59455831fed081eb80c8dda (diff)
downloadbuildroot-225e1681cc000d904e5e98a3fcff974aac4e8d71.tar.gz
buildroot-225e1681cc000d904e5e98a3fcff974aac4e8d71.zip
netplug: add two patches to fix musl build issues
This commit adds two patches to netplug that are needed for this package to build with musl: - One patch to add a missing header inclusion - One patch to fix a conflicting prototype on __assert_fail(). Fixes: http://autobuild.buildroot.net/results/c2a5dfedba46cc8eb3d0c5c43f1f76fe0bb1805f/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/netplug/0002-add-missing-time-include.patch')
-rw-r--r--package/netplug/0002-add-missing-time-include.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/netplug/0002-add-missing-time-include.patch b/package/netplug/0002-add-missing-time-include.patch
new file mode 100644
index 0000000000..f204c92431
--- /dev/null
+++ b/package/netplug/0002-add-missing-time-include.patch
@@ -0,0 +1,20 @@
+Add missing <time.h> include
+
+netplug.h uses time_t, so it must include <time.h>. This fixes a build
+issue with the musl C library.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/netplug.h
+===================================================================
+--- a/netplug.h
++++ b/netplug.h
+@@ -20,7 +20,7 @@
+ #ifndef __netplug_h
+ #define __netplug_h
+
+-
++#include <time.h>
+ #include <asm/types.h>
+ #include <sys/socket.h>
+ #include <linux/netlink.h>
OpenPOWER on IntegriCloud