Apple build break fix

Former-commit-id: 7a32ec39fdb738e9c3cd2b73ee18355ced793a65
This commit is contained in:
John Sully 2021-12-23 13:12:59 -05:00
parent 9f09e3aa9c
commit ff5e5f89ed

View File

@ -6562,7 +6562,11 @@ void *timeThreadMain(void*) {
} }
} }
updateCachedTime(); updateCachedTime();
#if defined(__APPLE__)
nanosleep(&delay, nullptr);
#else
clock_nanosleep(CLOCK_MONOTONIC, 0, &delay, NULL); clock_nanosleep(CLOCK_MONOTONIC, 0, &delay, NULL);
#endif
} }
} }