blob: bbee6e6b288db8deea0c7a886fb1ba7e96af3ed6 [file] [log] [blame]
Andrew Geisslerc926e172021-05-07 16:11:35 -05001From 7b32582c066549fea0f7180a6c575e7fa37a867f Mon Sep 17 00:00:00 2001
2From: 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>
13---
14 src/basic/missing_syscall.h | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
18index 0594a1b930..495d161334 100644
19--- a/src/basic/missing_syscall.h
20+++ b/src/basic/missing_syscall.h
21@@ -15,6 +15,12 @@
22 #include <asm/sgidefs.h>
23 #endif
24
25+#ifndef _MIPS_SIM_ABI32
26+#define _MIPS_SIM_ABI32 1
27+#define _MIPS_SIM_NABI32 2
28+#define _MIPS_SIM_ABI64 3
29+#endif
30+
31 #if defined(__x86_64__) && defined(__ILP32__)
32 # define systemd_SC_arch_bias(x) ((x) | /* __X32_SYSCALL_BIT */ 0x40000000)
33 #elif defined(__ia64__)
34--
352.31.1
36