blob: f4a71be7cc9bf0d802b5dadaa04a015f333d88f8 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 6f0dd2ba75b68036d7b4ebfe47ac5eaf44d26f06 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---
15 src/basic/missing_syscall.h | 6 ++++++
16 1 file changed, 6 insertions(+)
17
Andrew Geisslerc926e172021-05-07 16:11:35 -050018--- a/src/basic/missing_syscall.h
19+++ b/src/basic/missing_syscall.h
William A. Kennington IIIac69b482021-06-02 12:28:27 -070020@@ -20,6 +20,12 @@
Andrew Geisslerc926e172021-05-07 16:11:35 -050021 #include <asm/sgidefs.h>
22 #endif
23
24+#ifndef _MIPS_SIM_ABI32
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000025+#define _MIPS_SIM_ABI32 1
26+#define _MIPS_SIM_NABI32 2
27+#define _MIPS_SIM_ABI64 3
Andrew Geisslerc926e172021-05-07 16:11:35 -050028+#endif
29+
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000030 #include "macro.h"
William A. Kennington IIIac69b482021-06-02 12:28:27 -070031 #include "missing_keyctl.h"
32 #include "missing_stat.h"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000033--- 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 */