Commit d01fb265 authored by Matt Johnston's avatar Matt Johnston
Browse files

Fix monotonic_now() on OS X

parent db688e3e
......@@ -962,7 +962,7 @@ time_t monotonic_now() {
return ts.tv_sec;
#elif defined(HAVE_MACH_ABSOLUTE_TIME)
/* OS X, see https://developer.apple.com/library/mac/qa/qa1398/_index.html */
mach_timebase_info_data_t timebase_info;
static mach_timebase_info_data_t timebase_info;
if (timebase_info.denom == 0) {
mach_timebase_info(&timebase_info);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment