mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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:
parent
d34ca59016
commit
bb6834cfae
2 changed files with 34 additions and 15 deletions
10
hw/virtio.h
10
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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue