diff --git a/nsenter/nsexec.c b/nsenter/nsexec.c index d78e1691c..cd02d00a0 100644 --- a/nsenter/nsexec.c +++ b/nsenter/nsexec.c @@ -40,6 +40,9 @@ static int child_func(void *_arg) #if __GLIBC__ == 2 && __GLIBC_MINOR__ < 14 #define _GNU_SOURCE #include "syscall.h" +#if defined(__NR_setns) && !defined(SYS_setns) +#define SYS_setns __NR_setns +#endif #ifdef SYS_setns int setns(int fd, int nstype) {