Skip to contentSkip to conversation

qemu-timer: Fix compilation of new timer code for w32, w64

PATCH Applied Stefan Weil 3 participants 3 messages Feb 4, 2011 – Feb 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-timer: Fix compilation of new timer code for w32, w64

qemu_next_alarm_deadline() is needed by MinGW, too.

Cc Paolo Bonzini <[email protected]>
Cc Anthony Liguori <[email protected]>
---
 qemu-timer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
qemu-timer.c +2 -2
index b1a3a84..2de02fe 100644
@@ -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;
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 23 lines · Stefan Weil

qemu_next_alarm_deadline() is needed by MinGW, too.

Cc Paolo Bonzini<[email protected]>
Cc Anthony Liguori<[email protected]>
---
  qemu-timer.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
qemu-timer.c +0 -2
index b1a3a84..2de02fe 100644
@@ -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;

qemu-timer.c static void dynticks_rearm_timer(struct qemu_alarm_timer *t) · line 925

Quoted 8 lines
qemu-timer.c +2 -0
@@ -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;

Thanks,

Paolo

Applied
#2 lore raw

Thanks, applied.

Quoted 42 lines · Paolo Bonzini
Quoted 32 lines · Stefan Weil

qemu_next_alarm_deadline() is needed by MinGW, too.

Cc Paolo Bonzini<[email protected]>
Cc Anthony Liguori<[email protected]>

---
 qemu-timer.c |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
qemu-timer.c +2 -2
index b1a3a84..2de02fe 100644
@@ -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)
  {
Quoted 1 line

     struct sigaction act;

Thanks,

Paolo