From: Yu Watanabe Date: Fri, 11 Jul 2025 08:23:36 +0000 (+0900) Subject: tree-wide: include asm/sgidefs.h to make _MIPS_SIM_ABI32 and friends defined X-Git-Tag: v258-rc1~87^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F38169%2Fhead;p=thirdparty%2Fsystemd.git tree-wide: include asm/sgidefs.h to make _MIPS_SIM_ABI32 and friends defined The header provides _MIPS_SIM_ABI32 and friends. Glibc indirectly includes the header through sys/syscall.h or unistd.h, but let's explicitly include the header where we use _MIPS_SIM_ABI32 and friends. --- diff --git a/src/include/override/sys/generate-syscall.py b/src/include/override/sys/generate-syscall.py index b58f1d6bcf1..2a03623dbbd 100644 --- a/src/include/override/sys/generate-syscall.py +++ b/src/include/override/sys/generate-syscall.py @@ -44,6 +44,10 @@ HEADER = '''\ #include_next +#ifdef ARCH_MIPS +#include +#endif + #include ''' diff --git a/src/include/override/sys/syscall.h b/src/include/override/sys/syscall.h index 894394a76bb..f069e5f3c2f 100644 --- a/src/include/override/sys/syscall.h +++ b/src/include/override/sys/syscall.h @@ -8,6 +8,10 @@ #include_next +#ifdef ARCH_MIPS +#include +#endif + #include /* Note: if this code looks strange, this is because it is derived from the same diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c index 080e13a17a5..bad3b46f3ad 100644 --- a/src/shared/base-filesystem.c +++ b/src/shared/base-filesystem.c @@ -5,6 +5,10 @@ #include #include +#ifdef ARCH_MIPS +#include +#endif + #include "alloc-util.h" #include "base-filesystem.h" #include "errno-util.h" diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c index 3c61f823718..5e82a125042 100644 --- a/src/shared/seccomp-util.c +++ b/src/shared/seccomp-util.c @@ -8,6 +8,10 @@ #include #include +#ifdef ARCH_MIPS +#include +#endif + #include "af-list.h" #include "alloc-util.h" #include "env-util.h"