Patchwork qemu-timer.c: fix build on windows.

login
register
mail settings
Submitter Tristan Gingold
Date Feb. 7, 2011, 1:35 p.m.
Message ID <1297085731-1489-1-git-send-email-gingold@adacore.com>
Download mbox | patch
Permalink /patch/82161/
State New
Headers show

Comments

Tristan Gingold - Feb. 7, 2011, 1:35 p.m.
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(-)
Stefan Weil - Feb. 7, 2011, 5:26 p.m.
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

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