* updated korganizer (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / emulators / qemu / hotfix-uio.patch
blob5d92687db102f30226283f3ad1f26f52ee2ba5df
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/qemu/hotfix-uio.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- qemu-6.2.0-rc0/include/qemu/osdep.h.vanilla 2021-11-16 18:05:10.000000000 +0100
15 +++ qemu-6.2.0-rc0/include/qemu/osdep.h 2021-11-16 18:14:55.000000000 +0100
16 @@ -58,6 +58,7 @@
17 #include <stdlib.h>
18 #undef daemon
19 QEMU_EXTERN_C int daemon(int, int);
20 +#include <unistd.h>
21 #endif
23 #ifdef _WIN32
24 @@ -104,7 +105,7 @@
25 #include <setjmp.h>
26 #include <signal.h>
28 -#ifdef CONFIG_IOVEC
29 +#if defined(CONFIG_IOVEC) || defined(__APPLE__)
30 #include <sys/uio.h>
31 #endif
33 @@ -606,7 +606,7 @@
35 int qemu_get_thread_id(void);
37 -#ifndef CONFIG_IOVEC
38 +#if !defined(CONFIG_IOVEC) && !defined(__APPLE__)
39 struct iovec {
40 void *iov_base;
41 size_t iov_len;