xref: /OK3568_Linux_fs/buildroot/package/netplug/0002-add-missing-time-include.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Add missing <time.h> include
2
3netplug.h uses time_t, so it must include <time.h>. This fixes a build
4issue with the musl C library.
5
6Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7
8Index: b/netplug.h
9===================================================================
10--- a/netplug.h
11+++ b/netplug.h
12@@ -20,7 +20,7 @@
13 #ifndef __netplug_h
14 #define __netplug_h
15
16-
17+#include <time.h>
18 #include <asm/types.h>
19 #include <sys/socket.h>
20 #include <linux/netlink.h>
21