summaryrefslogtreecommitdiff
path: root/user/qemu/MAP_SYNC-fix.patch
blob: e13609d731547d126da70eeb78aba74426a415a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c
index f7f177d..7598960 100644
--- a/util/mmap-alloc.c
+++ b/util/mmap-alloc.c
@@ -10,14 +10,16 @@
  * later.  See the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
+
 #ifdef CONFIG_LINUX
 #include <linux/mman.h>
+#include <asm-generic/mman.h> /* for ppc64le */
 #else  /* !CONFIG_LINUX */
 #define MAP_SYNC              0x0
 #define MAP_SHARED_VALIDATE   0x0
 #endif /* CONFIG_LINUX */
 
-#include "qemu/osdep.h"
 #include "qemu/mmap-alloc.h"
 #include "qemu/host-utils.h"