aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-02-04 22:01:32 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-02-07 19:50:29 +0000
commitf26e5a54f0554798a2e6f7a074b809b13635d007 (patch)
treec464c37010e5b468c0d4d4a52615c1fdd23e60f2
parent8591675f44929a9e4b5d3a5fd702a4b6d41c7903 (diff)
downloadqemu-f26e5a54f0554798a2e6f7a074b809b13635d007.zip
qemu-f26e5a54f0554798a2e6f7a074b809b13635d007.tar.gz
qemu-f26e5a54f0554798a2e6f7a074b809b13635d007.tar.bz2
qemu-timer: Fix compilation of new timer code for w32, w64
qemu_next_alarm_deadline() is needed by MinGW, too. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Anthony Liguori <aliguori@us.ibm.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--qemu-timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-timer.c b/qemu-timer.c
index 658f637..b0db780 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;