Mercurial > dropbear
changeset 930:8f04e36622c0
Fix monotonic_now() on OS X
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 21 Mar 2014 22:16:42 +0800 |
parents | 9d40ed1da686 |
children | ac340d3e452e |
files | dbutil.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }