summaryrefslogtreecommitdiff
path: root/stubdom-have-iovec.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-12 04:00:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-12 04:00:49 +0000
commitc22f60e6e55f1bf300dd76d2222a93911f3b2bb2 (patch)
treeef665e7018377f53612ac2751dcaea35a1c587b6 /stubdom-have-iovec.patch
parent39a4763249cd6289e5019acfe0c98dbb169f5f2e (diff)
automatic import of xenopeneuler22.03_LTS
Diffstat (limited to 'stubdom-have-iovec.patch')
-rw-r--r--stubdom-have-iovec.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/stubdom-have-iovec.patch b/stubdom-have-iovec.patch
new file mode 100644
index 0000000..6204a7e
--- /dev/null
+++ b/stubdom-have-iovec.patch
@@ -0,0 +1,26 @@
+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
+Index: xen-4.12.0-testing/tools/libxc/xc_private.h
+===================================================================
+--- xen-4.12.0-testing.orig/tools/libxc/xc_private.h
++++ xen-4.12.0-testing/tools/libxc/xc_private.h
+@@ -50,6 +50,8 @@
+ #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.
+@@ -58,6 +60,7 @@ struct iovec {
+ void *iov_base;
+ size_t iov_len;
+ };
++#endif
+ #else
+ #include <sys/uio.h>
+ #endif