Skip to contentSkip to conversation

qemu-timer: Move include for __FreeBSD_version to header

PATCH Applied Andreas Faerber 2 participants 2 messages May 5, 2012 – May 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-timer: Move include for __FreeBSD_version to header

sys/param.h is needed for __FreeBSD_version.
Pointed out by Juergen, thanks.

---
 qemu-timer.c |    4 ----
 qemu-timer.h |    4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)
qemu-timer.c +0 -4
index 8eadd16..970b8b4 100644
@@ -31,10 +31,6 @@
 
 #include "qemu-timer.h"
 
-#ifdef __FreeBSD__
-#include <sys/param.h>
-#endif
-
 #ifdef _WIN32
 #include <mmsystem.h>
 #endif
qemu-timer.h +4 -0
index 5175419..f8af595 100644
@@ -5,6 +5,10 @@
 #include "main-loop.h"
 #include "notify.h"
 
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#endif
+
 /* timers */
 
 #define SCALE_MS 1000000
Signature · 1 line
1.7.8
#1 lore raw
Quoted 5 lines · Andreas Faerber

sys/param.h is needed for __FreeBSD_version.
Pointed out by Juergen, thanks.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 35 lines
---
  qemu-timer.c |    4 ----
  qemu-timer.h |    4 ++++
  2 files changed, 4 insertions(+), 4 deletions(-)
qemu-timer.c +0 -4
index 8eadd16..970b8b4 100644
@@ -31,10 +31,6 @@
 
  #include "qemu-timer.h"
 
-#ifdef __FreeBSD__
-#include<sys/param.h>
-#endif
-
  #ifdef _WIN32
  #include<mmsystem.h>
  #endif
qemu-timer.h +4 -0
index 5175419..f8af595 100644
@@ -5,6 +5,10 @@
  #include "main-loop.h"
  #include "notify.h"
 
+#ifdef __FreeBSD__
+#include<sys/param.h>
+#endif
+
  /* timers */
 
  #define SCALE_MS 1000000