]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: include asm/sgidefs.h to make _MIPS_SIM_ABI32 and friends defined 38169/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Jul 2025 08:23:36 +0000 (17:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Jul 2025 08:26:28 +0000 (17:26 +0900)
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.

src/include/override/sys/generate-syscall.py
src/include/override/sys/syscall.h
src/shared/base-filesystem.c
src/shared/seccomp-util.c

index b58f1d6bcf175eafb9ac3b3d3e075d04d168f10e..2a03623dbbd1ea5ed4caf3b104d4138bf590242a 100644 (file)
@@ -44,6 +44,10 @@ HEADER = '''\
 
 #include_next <sys/syscall.h>
 
+#ifdef ARCH_MIPS
+#include <asm/sgidefs.h>
+#endif
+
 #include <assert.h>
 '''
 
index 894394a76bba991f44a5ab3e1047d09ece7da636..f069e5f3c2f2fe3d20851c0de9439d959d0dc5ad 100644 (file)
@@ -8,6 +8,10 @@
 
 #include_next <sys/syscall.h>
 
+#ifdef ARCH_MIPS
+#include <asm/sgidefs.h>
+#endif
+
 #include <assert.h>
 
 /* Note: if this code looks strange, this is because it is derived from the same
index 080e13a17a5e65e28f28f2c498cb283ca31eb70d..bad3b46f3ad3a76f43314634dd6a01a9af7f94e8 100644 (file)
@@ -5,6 +5,10 @@
 #include <syslog.h>
 #include <unistd.h>
 
+#ifdef ARCH_MIPS
+#include <asm/sgidefs.h>
+#endif
+
 #include "alloc-util.h"
 #include "base-filesystem.h"
 #include "errno-util.h"
index 3c61f8237182d0716d53f88867b8ec5070cdcf0b..5e82a12504204fccd1f0c9784f2769bb8a402a69 100644 (file)
@@ -8,6 +8,10 @@
 #include <sys/shm.h>
 #include <sys/stat.h>
 
+#ifdef ARCH_MIPS
+#include <asm/sgidefs.h>
+#endif
+
 #include "af-list.h"
 #include "alloc-util.h"
 #include "env-util.h"