2015-11-11 18:04:52 +01:00
|
|
|
Because of commit 76eb7cef6b84ca804f4db340e23ad9c501767c32
|
|
|
|
xc_private.h now contains a definition of iovec. This conflicts
|
|
|
|
when building qemu traditional xen_platform.c which includes
|
|
|
|
hw.h which includes qemu-common.h which already has a definition
|
|
|
|
of iovec
|
2016-03-25 23:10:02 +01:00
|
|
|
Index: xen-4.7.0-testing/tools/libxc/xc_private.h
|
2015-11-11 18:04:52 +01:00
|
|
|
===================================================================
|
2016-03-25 23:10:02 +01:00
|
|
|
--- xen-4.7.0-testing.orig/tools/libxc/xc_private.h
|
|
|
|
+++ xen-4.7.0-testing/tools/libxc/xc_private.h
|
|
|
|
@@ -47,6 +47,8 @@
|
2015-11-11 18:04:52 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__MINIOS__)
|
|
|
|
+#ifndef HAVE_IOVEC
|
|
|
|
+#define HAVE_IOVEC
|
|
|
|
/*
|
|
|
|
* MiniOS's libc doesn't know about sys/uio.h or writev().
|
|
|
|
* Declare enough of sys/uio.h to compile.
|
2016-03-25 23:10:02 +01:00
|
|
|
@@ -55,6 +57,7 @@ struct iovec {
|
2015-11-11 18:04:52 +01:00
|
|
|
void *iov_base;
|
|
|
|
size_t iov_len;
|
|
|
|
};
|
|
|
|
+#endif
|
|
|
|
#else
|
|
|
|
#include <sys/uio.h>
|
|
|
|
#endif
|