qemu: update musl-ppc patch to unbreak build

[ci skip]
This commit is contained in:
q66 2019-08-27 12:28:39 +02:00 committed by Helmut Pozimski
parent d362f7955b
commit 4635b1af7e

View file

@ -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 <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)