0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 04:51:44 +00:00
packages/utils/xfsprogs/patches/140-mman.patch
Rosen Penev 2491bcf81b xfsprogs: fix compilation with uClibc-ng
MAP_SHARED_VALIDATE is completely missing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-25 17:45:15 -07:00

18 lines
296 B
Diff

--- 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;