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
This commit is contained in:
aliguori 2008-12-04 21:28:28 +00:00
parent d34ca59016
commit bb6834cfae
2 changed files with 34 additions and 15 deletions

View file

@ -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. */