summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils/xfsprogs/files/0001-include-include-xfs-linux.h-after-sys-mman.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-filesystems/recipes-utils/xfsprogs/files/0001-include-include-xfs-linux.h-after-sys-mman.h.patch')
-rw-r--r--meta-filesystems/recipes-utils/xfsprogs/files/0001-include-include-xfs-linux.h-after-sys-mman.h.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/xfsprogs/files/0001-include-include-xfs-linux.h-after-sys-mman.h.patch b/meta-filesystems/recipes-utils/xfsprogs/files/0001-include-include-xfs-linux.h-after-sys-mman.h.patch
new file mode 100644
index 0000000000..d9aa309607
--- /dev/null
+++ b/meta-filesystems/recipes-utils/xfsprogs/files/0001-include-include-xfs-linux.h-after-sys-mman.h.patch
@@ -0,0 +1,33 @@
1From 04a4272a36f6b2a1ad30a10fcf36a4a1c68a5449 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 23 Aug 2018 05:33:57 +0000
4Subject: [PATCH] include include/xfs/linux.h after <sys/mman.h>
5
6This helps compiling with musl which goes ahead and undefines MAP_SYNC
7for mips and other architectures where its not wired in kernel
8
9Upstream-Status: Pending
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 io/mmap.c | 5 +++--
14 1 file changed, 3 insertions(+), 2 deletions(-)
15
16diff --git a/io/mmap.c b/io/mmap.c
17index 4c03e3d..3763551 100644
18--- a/io/mmap.c
19+++ b/io/mmap.c
20@@ -4,10 +4,11 @@
21 * All Rights Reserved.
22 */
23
24-#include "command.h"
25-#include "input.h"
26 #include <sys/mman.h>
27 #include <signal.h>
28+
29+#include "command.h"
30+#include "input.h"
31 #include "init.h"
32 #include "io.h"
33