qemu-timer: Move include for __FreeBSD_version to header
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.
Signed-off-by Andreas Faerber <[email protected]>
Cc Juergen Lock <[email protected]>
--- qemu-timer.c | 4 ---- qemu-timer.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-)
qemu-timer.c +0 -4
@@ -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
@@ -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
Anthony Liguori
AppliedQuoted 5 lines · Andreas Faerber
sys/param.his needed for__FreeBSD_version.
Pointed out by Juergen, thanks.Signed-off-by Andreas Faerber<[email protected]>Cc Juergen Lock<[email protected]>
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@@ -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@@ -5,6 +5,10 @@#include "main-loop.h" #include "notify.h" +#ifdef __FreeBSD__ +#include <sys/param.h> +#endif +/* timers */ #define SCALE_MS 1000000