diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-22 21:54:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-22 21:54:10 +0000 |
commit | c5107c85de7c6c9a3395f1394a29b541ac64760d (patch) | |
tree | 71f899b655e447d85203b974b0831fecf5686e9e /busybox-1.31.1-stime-fix.patch | |
parent | dd6894e9279f210d4b61e5bbf555fb96f0e0cc70 (diff) |
automatic import of busyboxopeneuler24.03_LTS
Diffstat (limited to 'busybox-1.31.1-stime-fix.patch')
-rw-r--r-- | busybox-1.31.1-stime-fix.patch | 24 |
1 files changed, 24 insertions, 0 deletions
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 <time.h> ++#include <sys/time.h> ++ ++int stime(const time_t *t) { ++ struct timeval tv; ++ ++ tv.tv_sec = *t; ++ tv.tv_usec = 0; ++ return settimeofday(&tv, NULL); ++} |