aboutsummaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils/xfsprogs/files/0002-include-include-xfs-linux.h-after-sys-mman.h.patch
blob: 89447fd92eb1416e9a05bd6f7c5c2d8cc32e6e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 18298d7c028cd5fbd2c68fa428dc2384344aeb91 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 23 Aug 2018 05:33:57 +0000
Subject: [PATCH] include include/xfs/linux.h after <sys/mman.h>

This helps compiling with musl which goes ahead and undefines MAP_SYNC
for mips and other architectures where its not wired in kernel

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 io/mmap.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/io/mmap.c b/io/mmap.c
index 106be49..34fadf4 100644
--- a/io/mmap.c
+++ b/io/mmap.c
@@ -16,10 +16,11 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "command.h"
-#include "input.h"
 #include <sys/mman.h>
 #include <signal.h>
+
+#include "command.h"
+#include "input.h"
 #include "init.h"
 #include "io.h"