diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-03-21 22:16:42 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-03-21 22:16:42 +0800 |
commit | d01fb265d62664297ca8a433a78ce3995ba96e06 (patch) | |
tree | 47e1c8beb5f3fd8aa94fe022880569bc7e757e29 /dbutil.c | |
parent | db688e3ec1564e744e8791953a6f8a804d86013d (diff) |
Fix monotonic_now() on OS X
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |