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.
This commit is contained in:
Yu Watanabe
2025-07-11 17:26:28 +09:00
parent e7a86455ed
commit 0c443a8800
4 changed files with 16 additions and 0 deletions
@@ -44,6 +44,10 @@ HEADER = '''\
#include_next <sys/syscall.h>
#ifdef ARCH_MIPS
#include <asm/sgidefs.h>
#endif
#include <assert.h>
'''
+4
View 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
+4
View 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"
+4
View 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"