Commit 331dadde1900247ee90547ce51c620432c5a8f79

Authored by blueswir1
1 parent 06dca6a7

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
Showing 1 changed file with 2 additions and 0 deletions
qemu-common.h
@@ -35,6 +35,8 @@ struct iovec { @@ -35,6 +35,8 @@ struct iovec {
35 void *iov_base; 35 void *iov_base;
36 size_t iov_len; 36 size_t iov_len;
37 }; 37 };
  38 +#else
  39 +#include <sys/uio.h>
38 #endif 40 #endif
39 41
40 #ifdef _WIN32 42 #ifdef _WIN32