diff --git a/srcpkgs/qemu/patches/musl-ppc.patch b/srcpkgs/qemu/patches/musl-ppc.patch index 86c21df4f1f..6f066c0b30e 100644 --- a/srcpkgs/qemu/patches/musl-ppc.patch +++ b/srcpkgs/qemu/patches/musl-ppc.patch @@ -58,3 +58,16 @@ if (*pcreg > (uintptr_t)safe_syscall_start && *pcreg < (uintptr_t)safe_syscall_end) { +--- util/mmap-alloc.c ++++ 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)