Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 1 | From 754a16eeb255c06dbdd4655632276573f0f075ec 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 | --- |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 15 | src/basic/missing_syscall.h | 6 ++++++ |
| 16 | src/shared/base-filesystem.c | 1 + |
| 17 | 2 files changed, 7 insertions(+) |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 18 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 19 | diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h |
| 20 | index 793d111c55..9665848b88 100644 |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 21 | --- a/src/basic/missing_syscall.h |
| 22 | +++ b/src/basic/missing_syscall.h |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 23 | @@ -20,6 +20,12 @@ |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 24 | #include <asm/sgidefs.h> |
| 25 | #endif |
| 26 | |
| 27 | +#ifndef _MIPS_SIM_ABI32 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 28 | +#define _MIPS_SIM_ABI32 1 |
| 29 | +#define _MIPS_SIM_NABI32 2 |
| 30 | +#define _MIPS_SIM_ABI64 3 |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 31 | +#endif |
| 32 | + |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 33 | #include "macro.h" |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 34 | #include "missing_keyctl.h" |
| 35 | #include "missing_stat.h" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 36 | diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c |
| 37 | index d396bc99fe..7e9c0c3412 100644 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 38 | --- a/src/shared/base-filesystem.c |
| 39 | +++ b/src/shared/base-filesystem.c |
| 40 | @@ -19,6 +19,7 @@ |
| 41 | #include "string-util.h" |
| 42 | #include "umask-util.h" |
| 43 | #include "user-util.h" |
| 44 | +#include "missing_syscall.h" |
| 45 | |
| 46 | typedef struct BaseFilesystem { |
| 47 | const char *dir; /* directory or symlink to create */ |