blob: ff96a720c56d7b381ea9970021b638c7cafabfcf [file] [log] [blame]
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05001From f5d7fee9620cbcf52be8f8ba477890d28cadfbc8 Mon Sep 17 00:00:00 2001
Andrew Geisslerc926e172021-05-07 16:11:35 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 12 Apr 2021 23:44:53 -0700
4Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl
5
6musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64
7unlike glibc where these are provided by libc headers, therefore define
8them here in case they are undefined
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
William A. Kennington IIIac69b482021-06-02 12:28:27 -070013
Andrew Geisslerc926e172021-05-07 16:11:35 -050014---
15 src/basic/missing_syscall.h | 6 ++++++
16 1 file changed, 6 insertions(+)
17
18diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050019index 9e3a165857..4d59b3e7b0 100644
Andrew Geisslerc926e172021-05-07 16:11:35 -050020--- a/src/basic/missing_syscall.h
21+++ b/src/basic/missing_syscall.h
William A. Kennington IIIac69b482021-06-02 12:28:27 -070022@@ -20,6 +20,12 @@
Andrew Geisslerc926e172021-05-07 16:11:35 -050023 #include <asm/sgidefs.h>
24 #endif
25
26+#ifndef _MIPS_SIM_ABI32
27+#define _MIPS_SIM_ABI32 1
28+#define _MIPS_SIM_NABI32 2
29+#define _MIPS_SIM_ABI64 3
30+#endif
31+
William A. Kennington IIIac69b482021-06-02 12:28:27 -070032 #include "missing_keyctl.h"
33 #include "missing_stat.h"
34 #include "missing_syscall_def.h"