aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-06 19:44:56 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-06 19:44:56 +0000
commit331dadde1900247ee90547ce51c620432c5a8f79 (patch)
tree7510e5719e15eea6a32b9efee5781c7a0f4e2c68
parent06dca6a7c1acd2301cbf5fe06d6cda2833c958be (diff)
The configure test for struct iovec #includes <sys/uio.h> but qemu-common.h did not.
This fixes compilation of hw/virtio.h on Mac OS X. Signed-off-by: Andreas Faerber <andreas.faerber@web.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5894 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--qemu-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h
index e1546c671b..cb5d46541e 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -35,6 +35,8 @@ struct iovec {
void *iov_base;
size_t iov_len;
};
+#else
+#include <sys/uio.h>
#endif
#ifdef _WIN32