dragora-installer: Auto determine height for initial dialog
[dragora.git] / patches / xfsprogs / fix-mmap.patch
blobd0740f695b3de7c9f97cd182897cc5c2e67fc2c5
1 diff --git a/io/mmap.c b/io/mmap.c
2 index f9383e5..12f3fff 100644
3 --- a/io/mmap.c
4 +++ b/io/mmap.c
5 @@ -4,10 +4,10 @@
6 * All Rights Reserved.
7 */
9 -#include "command.h"
10 -#include "input.h"
11 #include <sys/mman.h>
12 #include <signal.h>
13 +#include "command.h"
14 +#include "input.h"
15 #include "init.h"
16 #include "io.h"
18 @@ -20,6 +20,14 @@ static cmdinfo_t mwrite_cmd;
19 static cmdinfo_t mremap_cmd;
20 #endif /* HAVE_MREMAP */
22 +#ifndef HAVE_MAP_SYNC
23 +#define MAP_SYNC 0
24 +#define MAP_SHARED_VALIDATE 0
25 +#else
26 +#include <asm-generic/mman.h>
27 +#include <asm-generic/mman-common.h>
28 +#endif /* HAVE_MAP_SYNC */
30 mmap_region_t *maptable;
31 int mapcount;
32 mmap_region_t *mapping;