From 133a547b54894dfe55611d9dc3d8ef273e753a46 Mon Sep 17 00:00:00 2001 From: yliu Date: Wed, 30 Jul 2025 10:32:06 +0800 Subject: mips32: Define __IPC_64 according to kernel version In later kernel versions, IPC_64 is no longer required in the *ctl function, so it is defined as 0. --- libc/misc/sysvipc/ipc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libc/misc/sysvipc') diff --git a/libc/misc/sysvipc/ipc.h b/libc/misc/sysvipc/ipc.h index b342dc1cf..fc5bc4ea0 100644 --- a/libc/misc/sysvipc/ipc.h +++ b/libc/misc/sysvipc/ipc.h @@ -1,12 +1,19 @@ #ifndef IPC_H #define IPC_H #include +#include #include #ifndef __ARCH_HAS_DEPRECATED_SYSCALLS__ # define __IPC_64 0x0 +#elif defined __mips__ +# if __LINUX_KERNEL_VERSION < 0x050100 +# define __IPC_64 0x100 +# else +# define __IPC_64 0x0 +# endif #else -# if __WORDSIZE == 32 || defined __alpha__ || defined __mips__ +# if __WORDSIZE == 32 || defined __alpha__ # define __IPC_64 0x100 # else # define __IPC_64 0x0 -- cgit v1.2.3