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