libfaketime.c: fix fake_stat64buf() again

I got the logic wrong in PR #501 in the inner `#ifndef __APPLE__`.
This broke building on linux. This should fix it.
This commit is contained in:
usertam
2025-06-09 19:12:41 +08:00
parent cb48e454be
commit d276658b74

View File

@@ -995,9 +995,9 @@ static inline void fake_stat64buf (struct stat64 *buf) {
unlock_for_stat();
#else
lock_for_stat();
fake_clock_gettime(CLOCK_REALTIME, &buf->st_ctimespec);
fake_clock_gettime(CLOCK_REALTIME, &buf->st_atimespec);
fake_clock_gettime(CLOCK_REALTIME, &buf->st_mtimespec);
fake_clock_gettime(CLOCK_REALTIME, &buf->st_ctim);
fake_clock_gettime(CLOCK_REALTIME, &buf->st_atim);
fake_clock_gettime(CLOCK_REALTIME, &buf->st_mtim);
unlock_for_stat();
#endif
}