summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-03-21 22:16:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-03-21 22:16:42 +0800
commitd01fb265d62664297ca8a433a78ce3995ba96e06 (patch)
tree47e1c8beb5f3fd8aa94fe022880569bc7e757e29 /dbutil.c
parentdb688e3ec1564e744e8791953a6f8a804d86013d (diff)
Fix monotonic_now() on OS X
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index 07ba512..145bc33 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -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);
}