mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
xfsprogs: fix compilation with uClibc-ng
MAP_SHARED_VALIDATE is completely missing. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
--- a/io/mmap.c
|
||||
+++ b/io/mmap.c
|
||||
@@ -11,6 +11,10 @@
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user