diff options
Diffstat (limited to 'system/xfsprogs/fix-mmap.patch')
-rw-r--r-- | system/xfsprogs/fix-mmap.patch | 17 |
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; |