- fix macOS compile error.

The conditions for this redefinition do not seem to be correct.
This commit is contained in:
Christoph Oelckers 2020-01-07 20:06:56 +01:00
parent e7ee858d0d
commit 338dcef94c

View file

@ -4878,7 +4878,7 @@ extern "C" {
tv->tv_nsec = t.QuadPart % 1000000 * 1000;
return (0);
}
#elif __APPLE__ && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200
#elif __APPLE__ && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200 && !defined CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 0
int clock_gettime(int X, struct timespec *ts) {