Add compile-time check for POLARSSL_VERSION_FEATURES before using version_get_string().
[umurmur.git] / src / timer.c
index 65df9edcb8df06b189338723bb8b9974c9328c90..bfc182cb5ba7e8a8167f03bfadf6855bfc43ee9e 100644 (file)
@@ -47,7 +47,7 @@ static uint64_t Timer_now()
 #ifdef __MACH__
   clock_serv_t clock;
   mach_timespec_t mts;
-  host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &clock);
+  host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &clock);
   clock_get_time(clock, &mts);
   mach_port_deallocate(mach_task_self(), clock);
   ts.tv_sec = mts.tv_sec;