Mac compile fix

This commit is contained in:
David Anderson 2023-10-27 15:52:46 -07:00
parent e31a1562f2
commit b36c17f82b
1 changed files with 2 additions and 0 deletions

View File

@ -551,6 +551,8 @@ static void sporadic_files() {
if (!ret) { if (!ret) {
#ifdef _WIN32 #ifdef _WIN32
time_t t = sbuf.st_mtime; time_t t = sbuf.st_mtime;
#elif defined(__APPLE__)
time_t t = sbuf.st_mtimespec.tv_sec;
#else #else
time_t t = sbuf.st_mtim.tv_sec; time_t t = sbuf.st_mtim.tv_sec;
#endif #endif