summary refs log tree commit diff stats
path: root/hw/virtio.h
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-04 21:28:28 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-04 21:28:28 +0000
commitbb6834cfae238e342da966557d7d24423efe18ab (patch)
tree1b93a79d3f218f9d7d67ca47f074c4db2078804a /hw/virtio.h
parentd34ca5901630dca45f105bbe1a80b51fbb8c4284 (diff)
downloadfocaccia-qemu-bb6834cfae238e342da966557d7d24423efe18ab.tar.gz
focaccia-qemu-bb6834cfae238e342da966557d7d24423efe18ab.zip
Fix windows build after virtio changes
Windows does not have sys/uio.h and does not have err.h.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5877 c046a42c-6fe2-441c-8c8c-71466251a162
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. */