1From 147f3c2acbd96d44025cec11800ded0282327764 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 18 Sep 2017 17:22:43 -0700
4Subject: [PATCH] md: Fix build with musl
5
6The MIPS specific header <sgidefs.h> is not provided by musl
7linux kernel headers provide <asm/sgidefs.h> which has same definitions
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Pending
12
13 pr/include/md/_linux.cfg | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16--- a/pr/include/md/_linux.cfg
17+++ b/pr/include/md/_linux.cfg
18@@ -499,7 +499,7 @@
19 #elif defined(__mips__)
20
21 /* For _ABI64 */
22-#include <sgidefs.h>
23+#include <asm/sgidefs.h>
24
25 #ifdef __MIPSEB__
26 #define IS_BIG_ENDIAN 1
27@@ -511,7 +511,7 @@
28 #error "Unknown MIPS endianness."
29 #endif
30
31-#if _MIPS_SIM == _ABI64
32+#if _MIPS_SIM == _MIPS_SIM_ABI64
33
34 #define IS_64
35
36