summary refs log tree commit diff stats
path: root/hw/virtio.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio.h')
-rw-r--r--hw/virtio.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/hw/virtio.h b/hw/virtio.h
index 8c9cbaf63e..0aa3b09c4f 100644
--- a/hw/virtio.h
+++ b/hw/virtio.h
@@ -14,10 +14,18 @@
 #ifndef _QEMU_VIRTIO_H
 #define _QEMU_VIRTIO_H
 
-#include <sys/uio.h>
 #include "hw.h"
 #include "pci.h"
 
+#ifdef _WIN32
+struct iovec {
+    void *iov_base;
+    size_t iov_len;
+};
+#else
+#include <sys/uio.h>
+#endif
+
 /* from Linux's linux/virtio_config.h */
 
 /* Status byte for guest to report progress, and synchronize features. */