Files
SDK_SG200x_V2/buildroot-2024.02/package/netplug/0002-add-missing-time-include.patch
carbon e42fe97d74 buildroot long term support release 2024.02.3
buildroot-2024.02.3.tar.gz

Signed-off-by: carbon <carbon@milkv.io>
2024-06-21 14:23:43 +08:00

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>