提交 d08d6f04 编写于 作者: B Blue Swirl

monitor: use qemu_gettimeofday(), not gettimeofday()

Fix mingw32 build.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 08fd0fa9
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include "qjson.h" #include "qjson.h"
#include "json-streamer.h" #include "json-streamer.h"
#include "json-parser.h" #include "json-parser.h"
#include "osdep.h"
//#define DEBUG //#define DEBUG
//#define DEBUG_COMPLETION //#define DEBUG_COMPLETION
...@@ -320,9 +321,9 @@ static void timestamp_put(QDict *qdict) ...@@ -320,9 +321,9 @@ static void timestamp_put(QDict *qdict)
{ {
int err; int err;
QObject *obj; QObject *obj;
struct timeval tv; qemu_timeval tv;
err = gettimeofday(&tv, NULL); err = qemu_gettimeofday(&tv);
if (err < 0) if (err < 0)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册