diff --git a/src/basic/missing.h b/src/basic/missing.h index f7ab2859a49..65191310256 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -12,16 +12,11 @@ #include #include #include -#include #if HAVE_AUDIT #include #endif -#ifdef ARCH_MIPS -#include -#endif - #if HAVE_LINUX_VM_SOCKETS_H #include #else @@ -250,10 +245,6 @@ struct sockaddr_vm { #define RENAME_NOREPLACE (1 << 0) #endif -#ifndef KCMP_FILE -#define KCMP_FILE 0 -#endif - #ifndef SOL_ALG #define SOL_ALG 279 #endif diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index b009ea5bfa6..d5d4b26acb3 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -6,10 +6,20 @@ #include #include #include +#include + +#ifdef ARCH_MIPS +#include +#endif #include "missing_keyctl.h" #include "missing_stat.h" +/* linux/kcmp.h */ +#ifndef KCMP_FILE /* 3f4994cfc15f38a3159c6e3a4b3ab2e1481a6b02 (3.19) */ +#define KCMP_FILE 0 +#endif + #if !HAVE_PIVOT_ROOT static inline int missing_pivot_root(const char *new_root, const char *put_old) { return syscall(__NR_pivot_root, new_root, put_old); @@ -257,7 +267,7 @@ static inline int missing_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long i /* ======================================================================= */ #if !HAVE_KEYCTL -static inline long missing_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4,unsigned long arg5) { +static inline long missing_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5) { # ifdef __NR_keyctl return syscall(__NR_keyctl, cmd, arg2, arg3, arg4, arg5); # else