From 6f0dd2ba75b68036d7b4ebfe47ac5eaf44d26f06 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 12 Apr 2021 23:44:53 -0700 Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64 unlike glibc where these are provided by libc headers, therefore define them here in case they are undefined Upstream-Status: Pending Signed-off-by: Khem Raj --- src/basic/missing_syscall.h | 6 ++++++ 1 file changed, 6 insertions(+) --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -20,6 +20,12 @@ #include #endif +#ifndef _MIPS_SIM_ABI32 +#define _MIPS_SIM_ABI32 1 +#define _MIPS_SIM_NABI32 2 +#define _MIPS_SIM_ABI64 3 +#endif + #include "macro.h" #include "missing_keyctl.h" #include "missing_stat.h" --- a/src/shared/base-filesystem.c +++ b/src/shared/base-filesystem.c @@ -19,6 +19,7 @@ #include "string-util.h" #include "umask-util.h" #include "user-util.h" +#include "missing_syscall.h" typedef struct BaseFilesystem { const char *dir; /* directory or symlink to create */