qemu: update musl-ppc patch to unbreak build
[ci skip]
This commit is contained in:
parent
d362f7955b
commit
4635b1af7e
1 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue