Skip to content

Commit 96ab5d4

Browse files
committed
Fix build on macOS
utils.c:49:9: error: use of undeclared identifier 'mach_clk'
1 parent 3713eaf commit 96ab5d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static uint64_t semu_timer_clocksource(uint64_t freq)
4646
return t.tv_sec * freq + mult_frac(t.tv_nsec, freq, 1e9);
4747
#elif defined(HAVE_MACH_TIMER)
4848
static mach_timebase_info_data_t t;
49-
if (mach_clk.denom == 0)
49+
if (t.denom == 0)
5050
(void) mach_timebase_info(&t);
5151
return mult_frac(mach_absolute_time() * freq, t.numer, t.denom);
5252
#else
@@ -62,4 +62,4 @@ uint64_t semu_timer_get(semu_timer_t *timer)
6262
void semu_timer_rebase(semu_timer_t *timer, uint64_t time)
6363
{
6464
timer->begin = semu_timer_clocksource(timer->freq) - time;
65-
}
65+
}

0 commit comments

Comments
 (0)