[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] struct iovec compilation fix
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH] struct iovec compilation fix |
Date: |
Sat, 6 Dec 2008 12:12:16 +0100 |
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 <address@hidden>
---
diff --git a/qemu-common.h b/qemu-common.h
index e1546c6..cb5d465 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