]> git.pld-linux.org Git - packages/busybox.git/blob - busybox-1.31.1-stime-fix.patch
Reenable RPC and NFS mount.
[packages/busybox.git] / busybox-1.31.1-stime-fix.patch
1 diff -up busybox-1.31.1/libbb/Kbuild.src.stime busybox-1.31.1/libbb/Kbuild.src
2 --- busybox-1.31.1/libbb/Kbuild.src.stime       2019-11-13 17:08:22.808371597 -0500
3 +++ busybox-1.31.1/libbb/Kbuild.src     2019-11-13 17:08:50.154882529 -0500
4 @@ -198,3 +198,6 @@ lib-$(CONFIG_FEATURE_FIND_REGEX) += xreg
5  
6  # Add the experimental logging functionality, only used by zcip
7  lib-$(CONFIG_ZCIP) += logenv.o
8 +
9 +lib-$(CONFIG_DATE) += stime.o
10 +lib-$(CONFIG_RDATE) += stime.o
11 diff -up busybox-1.31.1/libbb/stime.c.stime busybox-1.31.1/libbb/stime.c
12 --- busybox-1.31.1/libbb/stime.c.stime  2019-11-13 17:07:06.905723262 -0500
13 +++ busybox-1.31.1/libbb/stime.c        2019-11-13 17:07:51.769924328 -0500
14 @@ -0,0 +1,10 @@
15 +#include <time.h>
16 +#include <sys/time.h>
17 +
18 +int stime(const time_t *t) {
19 +  struct timeval tv;
20 +
21 +  tv.tv_sec = *t;
22 +  tv.tv_usec = 0;
23 +  return settimeofday(&tv, NULL);
24 +}
This page took 0.097255 seconds and 3 git commands to generate.