aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Faerber <andreas.faerber@web.de>2012-05-05 20:08:40 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-05-08 11:14:56 -0500
commit165ceac0950dcfdf7a2676d6189bbab3d67701f1 (patch)
treef7f46f57f1bef75d915383497fe1f49526bd0339
parent4f08129eeb42422655cc946a0a0c3accc2b8e3db (diff)
qemu-timer: Move include for __FreeBSD_version to header
sys/param.h is needed for __FreeBSD_version. Pointed out by Juergen, thanks. Signed-off-by: Andreas Faerber <andreas.faerber@web.de> Cc: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--qemu-timer.c4
-rw-r--r--qemu-timer.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/qemu-timer.c b/qemu-timer.c
index b9fd75dbb8..4a6fc98ca0 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -31,10 +31,6 @@
#include "qemu-timer.h"
-#ifdef __FreeBSD__
-#include <sys/param.h>
-#endif
-
#ifdef _WIN32
#include <mmsystem.h>
#endif
diff --git a/qemu-timer.h b/qemu-timer.h
index 5175419e5f..f8af595f13 100644
--- a/qemu-timer.h
+++ b/qemu-timer.h
@@ -5,6 +5,10 @@
#include "main-loop.h"
#include "notify.h"
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#endif
+
/* timers */
#define SCALE_MS 1000000