diff --git a/util/env_posix.cc b/util/env_posix.cc index fa97b6c93..a2e1c714c 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -1409,7 +1409,7 @@ class PosixEnv : public Env { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return static_cast(ts.tv_sec) * 1000000000 + ts.tv_nsec; -#elif __MACH__ +#elif defined(__MACH__) clock_serv_t cclock; mach_timespec_t ts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);