void-packages/srcpkgs/qemu/patches/musl-ppc.patch
Evgeny Ermakov 4b63bc6096 qemu: update to 6.2.0.
Also:
 - clean up template
 - add build option for pulseaudio
 - use spice unconditionally
 - use system dtc, libslirp
 - fix CVE-2022-0358
2022-02-26 11:32:36 +01:00

25 lines
532 B
Diff

--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -21,5 +21,9 @@
#include "exec/gdbstub.h"
#include "hw/core/tcg-cpu-ops.h"
+#if defined(_ARCH_PPC64) && !defined(__GLIBC__) /* musl */
+#include <asm/ptrace.h>
+#endif
+
#include <sys/ucontext.h>
#include <sys/resource.h>
--- a/util/mmap-alloc.c
+++ b/util/mmap-alloc.c
@@ -25,6 +25,10 @@
#ifdef CONFIG_LINUX
#include <sys/vfs.h>
+/* musl undefs this on ppc and mips */
+#ifndef MAP_SYNC
+#define MAP_SYNC 0x80000
+#endif
#endif
size_t qemu_fd_getpagesize(int fd)