225e1681cc
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>
21 lines
483 B
Diff
21 lines
483 B
Diff
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>
|