William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 1 | From 366cd28f5f93ba7c861cd32a718251770d74830e Mon Sep 17 00:00:00 2001 |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 12 Apr 2021 23:44:53 -0700 |
| 4 | Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl |
| 5 | |
| 6 | musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64 |
| 7 | unlike glibc where these are provided by libc headers, therefore define |
| 8 | them here in case they are undefined |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 13 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 14 | --- |
| 15 | src/basic/missing_syscall.h | 6 ++++++ |
| 16 | 1 file changed, 6 insertions(+) |
| 17 | |
| 18 | diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 19 | index 1384324804..0202d00372 100644 |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 20 | --- a/src/basic/missing_syscall.h |
| 21 | +++ b/src/basic/missing_syscall.h |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 22 | @@ -20,6 +20,12 @@ |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 23 | #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 III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 32 | #include "missing_keyctl.h" |
| 33 | #include "missing_stat.h" |
| 34 | #include "missing_syscall_def.h" |