From: Michael Olbrich Date: Thu, 5 Mar 2015 10:33:25 +0100 Subject: [PATCH] missing: define __NR_kcmp if necessary Needed for Kernel Headers < v3.5 Not for upstream, but needed for host-systemd. Signed-off-by: Michael Olbrich --- src/basic/missing_syscall.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index d502d3b9cad8..83c60d804531 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -235,6 +235,10 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha /* ======================================================================= */ +#ifndef __NR_kcmp +# define __NR_kcmp 0xffffffff +#endif + #if !HAVE_DECL_KCMP static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) { # ifdef __NR_kcmp