26 lines
532 B
Diff
26 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)
|