From 2491bcf81b6c27ae898ab008b3ba8c5abe79d805 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 24 Jun 2020 17:01:36 -0700 Subject: [PATCH] xfsprogs: fix compilation with uClibc-ng MAP_SHARED_VALIDATE is completely missing. Signed-off-by: Rosen Penev --- utils/xfsprogs/Makefile | 2 +- utils/xfsprogs/patches/140-mman.patch | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/xfsprogs/Makefile b/utils/xfsprogs/Makefile index 335c8f7119..c14960e5b7 100644 --- a/utils/xfsprogs/Makefile +++ b/utils/xfsprogs/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xfsprogs PKG_VERSION:=5.5.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs diff --git a/utils/xfsprogs/patches/140-mman.patch b/utils/xfsprogs/patches/140-mman.patch index 936d3cc29e..fef5d50a24 100644 --- a/utils/xfsprogs/patches/140-mman.patch +++ b/utils/xfsprogs/patches/140-mman.patch @@ -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;