]> git.proxmox.com Git - qemu.git/blobdiff - iohandler.c
Avoid asprintf() which is not available on mingw
[qemu.git] / iohandler.c
index 4deae1e6ab533464cacb7413935aac72d3579a0f..3c74de612b2c647b47b081f57d959e896da08e85 100644 (file)
 #include "qemu-common.h"
 #include "qemu-char.h"
 #include "qemu-queue.h"
+#include "main-loop.h"
 
 #ifndef _WIN32
 #include <sys/wait.h>
 #endif
 
 typedef struct IOHandlerRecord {
-    int fd;
     IOCanReadHandler *fd_read_poll;
     IOHandler *fd_read;
     IOHandler *fd_write;
-    int deleted;
     void *opaque;
     QLIST_ENTRY(IOHandlerRecord) next;
+    int fd;
+    bool deleted;
 } IOHandlerRecord;
 
 static QLIST_HEAD(, IOHandlerRecord) io_handlers =