X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=qemu-common.h;h=e1546c671b465dbe2cb29e9e07b742a3532dff4f;hb=bf9298b90eee0b95cab11fc74790dcbddca4252e;hp=308847a21d08c4627dc4b040dc0a82360a5c59e1;hpb=a38131b669253fe40eff41e17ab7d1df78adbcd8;p=qemu diff --git a/qemu-common.h b/qemu-common.h index 308847a..e1546c6 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -16,6 +16,7 @@ #include #include #include +#include "config-host.h" #ifndef O_LARGEFILE #define O_LARGEFILE 0 @@ -28,6 +29,14 @@ #define ENOMEDIUM ENODEV #endif +#ifndef HAVE_IOVEC +#define HAVE_IOVEC +struct iovec { + void *iov_base; + size_t iov_len; +}; +#endif + #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #define WINVER 0x0501 /* needed for ipv6 bits */ @@ -54,7 +63,6 @@ static inline char *realpath(const char *path, char *resolved_path) /* FIXME: Remove NEED_CPU_H. */ #ifndef NEED_CPU_H -#include "config-host.h" #include #include "osdep.h" #include "bswap.h"