summaryrefslogtreecommitdiff
path: root/src/basic/missing_syscall.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-06 06:32:41 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-06 13:25:24 +0100
commit851d66fac2cbfe6801703451b3d84426421a895a (patch)
treebe813108a4fb650a3e27a131e56ac95536b933c3 /src/basic/missing_syscall.h
parentbd0937ddb37291ea97c7ba4cb70d04c4bf6a3a0f (diff)
downloadsystemd-851d66fac2cbfe6801703451b3d84426421a895a.tar.gz
missing: move syscall related definitions to missing_syscall.h
Diffstat (limited to 'src/basic/missing_syscall.h')
-rw-r--r--src/basic/missing_syscall.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
index b009ea5bfa..d5d4b26acb 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -6,10 +6,20 @@
#include <fcntl.h>
#include <sys/syscall.h>
#include <sys/types.h>
+#include <unistd.h>
+
+#ifdef ARCH_MIPS
+#include <asm/sgidefs.h>
+#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