From c5107c85de7c6c9a3395f1394a29b541ac64760d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 22 Aug 2024 21:54:10 +0000 Subject: automatic import of busybox --- busybox-1.31.1-stime-fix.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 busybox-1.31.1-stime-fix.patch (limited to 'busybox-1.31.1-stime-fix.patch') diff --git a/busybox-1.31.1-stime-fix.patch b/busybox-1.31.1-stime-fix.patch new file mode 100644 index 0000000..15af327 --- /dev/null +++ b/busybox-1.31.1-stime-fix.patch @@ -0,0 +1,24 @@ +diff -up busybox-1.31.1/libbb/Kbuild.src.stime busybox-1.31.1/libbb/Kbuild.src +--- busybox-1.31.1/libbb/Kbuild.src.stime 2019-11-13 17:08:22.808371597 -0500 ++++ busybox-1.31.1/libbb/Kbuild.src 2019-11-13 17:08:50.154882529 -0500 +@@ -198,3 +198,6 @@ lib-$(CONFIG_FEATURE_FIND_REGEX) += xreg + + # Add the experimental logging functionality, only used by zcip + lib-$(CONFIG_ZCIP) += logenv.o ++ ++lib-$(CONFIG_DATE) += stime.o ++lib-$(CONFIG_RDATE) += stime.o +diff -up busybox-1.31.1/libbb/stime.c.stime busybox-1.31.1/libbb/stime.c +--- busybox-1.31.1/libbb/stime.c.stime 2019-11-13 17:07:06.905723262 -0500 ++++ busybox-1.31.1/libbb/stime.c 2019-11-13 17:07:51.769924328 -0500 +@@ -0,0 +1,10 @@ ++#include ++#include ++ ++int stime(const time_t *t) { ++ struct timeval tv; ++ ++ tv.tv_sec = *t; ++ tv.tv_usec = 0; ++ return settimeofday(&tv, NULL); ++} -- cgit v1.2.3