From: Blue Swirl Date: Fri, 4 Dec 2009 18:06:39 +0000 (+0000) Subject: monitor: use qemu_gettimeofday(), not gettimeofday() X-Git-Tag: v0.12.0-rc0~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d08d6f04d6eeedce5090ff66d0676162d7d8d788;p=thirdparty%2Fqemu.git monitor: use qemu_gettimeofday(), not gettimeofday() Fix mingw32 build. Signed-off-by: Blue Swirl --- diff --git a/monitor.c b/monitor.c index 3cb3cf407a5..689a85359b7 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;