# HG changeset patch # User Matt Johnston # Date 1395411402 -28800 # Node ID 8f04e36622c0a3cb7307e6686c54434d1067a30b # Parent 9d40ed1da686d01f1b3443097f21d7f4d8e82819 Fix monotonic_now() on OS X diff -r 9d40ed1da686 -r 8f04e36622c0 dbutil.c --- a/dbutil.c Sat Mar 15 11:37:02 2014 +0800 +++ b/dbutil.c Fri Mar 21 22:16:42 2014 +0800 @@ -962,7 +962,7 @@ 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); }