Apple build break fix

Former-commit-id: 7a32ec39fdb738e9c3cd2b73ee18355ced793a65
This commit is contained in:
John Sully 2021-12-23 13:12:59 -05:00
parent 968d81dcf9
commit 7a0b94f0ef

View File

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