aboutsummaryrefslogtreecommitdiff
path: root/utils/xfsprogs/patches/140-mman.patch
blob: fef5d50a24017aa79771e83835b361233dafcf76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/io/mmap.c
+++ b/io/mmap.c
@@ -11,6 +11,14 @@
 #include "init.h"
 #include "io.h"
 
+#ifndef MAP_SYNC
+#define MAP_SYNC 0
+#endif
+
+#ifndef MAP_SHARED_VALIDATE
+#define MAP_SHARED_VALIDATE 0x03
+#endif
+
 static cmdinfo_t mmap_cmd;
 static cmdinfo_t mread_cmd;
 static cmdinfo_t msync_cmd;