diff mbox

qemu-timer.c: fix build on windows.

Message ID 1297085731-1489-1-git-send-email-gingold@adacore.com
State New
Headers show

Commit Message

Tristan Gingold Feb. 7, 2011, 1:35 p.m. UTC
The function qemu_next_alarm_deadline is needed by windows.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
---
 qemu-timer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Stefan Weil Feb. 7, 2011, 5:26 p.m. UTC | #1
Am 07.02.2011 14:35, schrieb Tristan Gingold:
> The function qemu_next_alarm_deadline is needed by windows.
>
> Signed-off-by: Tristan Gingold <gingold@adacore.com>
> ---
> qemu-timer.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
[snip]

Maybe one of the maintainers can apply your patch or this
one (which already has Paolo's acknowledge):

http://patchwork.ozlabs.org/patch/81952/

Thanks,
Stefan Weil
diff mbox

Patch

diff --git a/qemu-timer.c b/qemu-timer.c
index 658f637..f81300b 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;
@@ -737,6 +735,7 @@  static int64_t qemu_next_alarm_deadline(void)
     return delta;
 }
 
+#ifndef _WIN32
 #if defined(__linux__)
 
 #define RTC_FREQ 1024