qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] qemu-timer: Fix compilation of new timer code for w


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] qemu-timer: Fix compilation of new timer code for w32, w64
Date: Fri, 4 Feb 2011 22:01:32 +0100

qemu_next_alarm_deadline() is needed by MinGW, too.

Cc: Paolo Bonzini <address@hidden>
Cc: Anthony Liguori <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---
 qemu-timer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu-timer.c b/qemu-timer.c
index b1a3a84..2de02fe 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -706,8 +706,6 @@ int64_t qemu_next_deadline(void)
     return delta;
 }
 
-#ifndef _WIN32
-
 static int64_t qemu_next_alarm_deadline(void)
 {
     int64_t delta;
@@ -920,6 +918,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;
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]