blob: 6c97a272e25e0f7698a100d564b6cbecb19099c9 [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001From 754a16eeb255c06dbdd4655632276573f0f075ec Mon Sep 17 00:00:00 2001
Andrew Geisslerc926e172021-05-07 16:11:35 -05002From: 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>
William A. Kennington IIIac69b482021-06-02 12:28:27 -070013
Andrew Geisslerc926e172021-05-07 16:11:35 -050014---
Andrew Geisslerd5838332022-05-27 11:33:10 -050015 src/basic/missing_syscall.h | 6 ++++++
16 src/shared/base-filesystem.c | 1 +
17 2 files changed, 7 insertions(+)
Andrew Geisslerc926e172021-05-07 16:11:35 -050018
Andrew Geisslerd5838332022-05-27 11:33:10 -050019diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
20index 793d111c55..9665848b88 100644
Andrew Geisslerc926e172021-05-07 16:11:35 -050021--- a/src/basic/missing_syscall.h
22+++ b/src/basic/missing_syscall.h
William A. Kennington IIIac69b482021-06-02 12:28:27 -070023@@ -20,6 +20,12 @@
Andrew Geisslerc926e172021-05-07 16:11:35 -050024 #include <asm/sgidefs.h>
25 #endif
26
27+#ifndef _MIPS_SIM_ABI32
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000028+#define _MIPS_SIM_ABI32 1
29+#define _MIPS_SIM_NABI32 2
30+#define _MIPS_SIM_ABI64 3
Andrew Geisslerc926e172021-05-07 16:11:35 -050031+#endif
32+
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000033 #include "macro.h"
William A. Kennington IIIac69b482021-06-02 12:28:27 -070034 #include "missing_keyctl.h"
35 #include "missing_stat.h"
Andrew Geisslerd5838332022-05-27 11:33:10 -050036diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
37index d396bc99fe..7e9c0c3412 100644
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000038--- 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 */