X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fmissing.h;h=a073e89da4c993e68928457b43dd775997b807d1;hb=f95cf7a0e475fcb8777c43081219320f7e3dc59b;hp=bc6fbc539440b80a92aae543f40f39fd0abf7962;hpb=3d1092eab0f4a5c771225c78072a7b6eccb82849;p=elogind.git diff --git a/src/basic/missing.h b/src/basic/missing.h index bc6fbc539..a073e89da 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -1026,7 +1026,12 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha #if !HAVE_DECL_KCMP static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) { +#if defined(__NR_kcmp) return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); +#else + errno = ENOSYS; + return -1; +#endif } #endif