From: Stefan Weil Date: Fri, 4 Feb 2011 21:01:32 +0000 (+0100) Subject: qemu-timer: Fix compilation of new timer code for w32, w64 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f26e5a54f0554798a2e6f7a074b809b13635d007;p=qemu.git qemu-timer: Fix compilation of new timer code for w32, w64 qemu_next_alarm_deadline() is needed by MinGW, too. Cc: Paolo Bonzini Cc: Anthony Liguori Acked-by: Paolo Bonzini Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- diff --git a/qemu-timer.c b/qemu-timer.c index 658f637ced..b0db780a1e 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -708,8 +708,6 @@ int64_t qemu_next_deadline(void) return delta; } -#ifndef _WIN32 - static int64_t qemu_next_alarm_deadline(void) { int64_t delta; @@ -922,6 +920,8 @@ static void dynticks_rearm_timer(struct qemu_alarm_timer *t) #endif /* defined(__linux__) */ +#if !defined(_WIN32) + static int unix_start_timer(struct qemu_alarm_timer *t) { struct sigaction act;