2026年6月12日

This commit is contained in:
2026-06-12 14:12:55 +08:00
parent 571b8e01d3
commit a9341db9c8
17 changed files with 558 additions and 47 deletions
+2 -1
View File
@@ -394,9 +394,10 @@ void adjustdate(int year, int mon, int mday, int hour, int min, int sec) {
nowtime.tm_isdst = -1; // DST.[-1/0/1]
t = mktime(&nowtime);
#if __GLIBC_MINOR__ >= 31
#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 31))
struct timespec res;
res.tv_sec = t;
res.tv_nsec = 0;
clock_settime(CLOCK_REALTIME, &res);
#else
stime(&t);