--- 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 +#endif + #include #include --- a/util/mmap-alloc.c +++ b/util/mmap-alloc.c @@ -25,6 +25,10 @@ #ifdef CONFIG_LINUX #include +/* musl undefs this on ppc and mips */ +#ifndef MAP_SYNC +#define MAP_SYNC 0x80000 +#endif #endif size_t qemu_fd_getpagesize(int fd)