From b36c17f82b43ea4ef9a8867a7a5efbbfcd8f4c83 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 27 Oct 2023 15:52:46 -0700 Subject: [PATCH] Mac compile fix --- api/boinc_api.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index 22899d20fb..be7b345d3e 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -551,6 +551,8 @@ static void sporadic_files() { if (!ret) { #ifdef _WIN32 time_t t = sbuf.st_mtime; +#elif defined(__APPLE__) + time_t t = sbuf.st_mtimespec.tv_sec; #else time_t t = sbuf.st_mtim.tv_sec; #endif