summaryrefslogtreecommitdiff
path: root/system/xfsprogs/fix-mmap.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-03 22:17:09 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-03 22:26:08 +0000
commit5056b642bad8caf763a9b18d7c670bf7c606a96e (patch)
tree79dc2727569ce0c48c114e00a4905f82644687e9 /system/xfsprogs/fix-mmap.patch
parent2c3b41e222ff1ad8eefd64fe3641522f3b801526 (diff)
downloadpackages-5056b642bad8caf763a9b18d7c670bf7c606a96e.tar.gz
packages-5056b642bad8caf763a9b18d7c670bf7c606a96e.tar.bz2
packages-5056b642bad8caf763a9b18d7c670bf7c606a96e.tar.xz
packages-5056b642bad8caf763a9b18d7c670bf7c606a96e.zip
system/xfsprogs: FINALLY update to 4.18.0
Diffstat (limited to 'system/xfsprogs/fix-mmap.patch')
-rw-r--r--system/xfsprogs/fix-mmap.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/xfsprogs/fix-mmap.patch b/system/xfsprogs/fix-mmap.patch
new file mode 100644
index 000000000..be2704107
--- /dev/null
+++ b/system/xfsprogs/fix-mmap.patch
@@ -0,0 +1,17 @@
+--- xfsprogs-4.18.0/io/mmap.c.old 2018-08-24 20:17:05.000000000 +0000
++++ xfsprogs-4.18.0/io/mmap.c 2018-11-03 22:13:06.790000000 +0000
+@@ -20,6 +20,14 @@
+ static cmdinfo_t mremap_cmd;
+ #endif /* HAVE_MREMAP */
+
++#ifndef HAVE_MAP_SYNC
++#define MAP_SYNC 0
++#define MAP_SHARED_VALIDATE 0
++#else
++#include <asm-generic/mman.h>
++#include <asm-generic/mman-common.h>
++#endif /* HAVE_MAP_SYNC */
++
+ mmap_region_t *maptable;
+ int mapcount;
+ mmap_region_t *mapping;