diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch new file mode 100644 index 0000000000..1443c5082b --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From ef9ad83759f78de983d2d7c4f95bc48b83bb8f66 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 12 Apr 2021 23:44:53 -0700 | ||
4 | Subject: [PATCH 15/26] 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> | ||
13 | --- | ||
14 | src/basic/missing_syscall.h | 6 ++++++ | ||
15 | src/shared/base-filesystem.c | 1 + | ||
16 | 2 files changed, 7 insertions(+) | ||
17 | |||
18 | --- a/src/basic/missing_syscall.h | ||
19 | +++ b/src/basic/missing_syscall.h | ||
20 | @@ -20,6 +20,12 @@ | ||
21 | #include <asm/sgidefs.h> | ||
22 | #endif | ||
23 | |||
24 | +#ifndef _MIPS_SIM_ABI32 | ||
25 | +#define _MIPS_SIM_ABI32 1 | ||
26 | +#define _MIPS_SIM_NABI32 2 | ||
27 | +#define _MIPS_SIM_ABI64 3 | ||
28 | +#endif | ||
29 | + | ||
30 | #include "macro.h" | ||
31 | #include "missing_keyctl.h" | ||
32 | #include "missing_sched.h" | ||
33 | --- a/src/shared/base-filesystem.c | ||
34 | +++ b/src/shared/base-filesystem.c | ||
35 | @@ -20,6 +20,7 @@ | ||
36 | #include "string-util.h" | ||
37 | #include "umask-util.h" | ||
38 | #include "user-util.h" | ||
39 | +#include "missing_syscall.h" | ||
40 | |||
41 | typedef enum BaseFilesystemFlags { | ||
42 | BASE_FILESYSTEM_IGNORE_ON_FAILURE = 1 << 0, | ||