mirror of https://github.com/xemu-project/xemu.git
monitor: use qemu_gettimeofday(), not gettimeofday()
Fix mingw32 build. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
08fd0fa9f1
commit
d08d6f04d6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue