aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-12-04 18:06:39 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-12-04 18:06:39 +0000
commitd08d6f04d6eeedce5090ff66d0676162d7d8d788 (patch)
treed88441ef5f18766243bd81b145c53716dd45a5a3 /monitor.c
parent08fd0fa9f157d67a6a3689935c8b87c42e6684d7 (diff)
downloadqemu-d08d6f04d6eeedce5090ff66d0676162d7d8d788.zip
qemu-d08d6f04d6eeedce5090ff66d0676162d7d8d788.tar.gz
qemu-d08d6f04d6eeedce5090ff66d0676162d7d8d788.tar.bz2
monitor: use qemu_gettimeofday(), not gettimeofday()
Fix mingw32 build. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 3cb3cf4..689a853 100644
--- a/monitor.c
+++ b/monitor.c
@@ -55,6 +55,7 @@
#include "qjson.h"
#include "json-streamer.h"
#include "json-parser.h"
+#include "osdep.h"
//#define DEBUG
//#define DEBUG_COMPLETION
@@ -320,9 +321,9 @@ static void timestamp_put(QDict *qdict)
{
int err;
QObject *obj;
- struct timeval tv;
+ qemu_timeval tv;
- err = gettimeofday(&tv, NULL);
+ err = qemu_gettimeofday(&tv);
if (err < 0)
return;