From: Stéphane Graber Date: Fri, 24 Jan 2014 18:27:26 +0000 (-0500) Subject: Support __NR_set_ns as well. X-Git-Tag: lxc-1.0.0.beta3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e23841a270bc48fc4a63fcac833e6d112486eb;p=thirdparty%2Flxc.git Support __NR_set_ns as well. Apparently some older systems didn't have __NR_setns but had __NR_set_ns. Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/utils.h b/src/lxc/utils.h index dd81c6264..a07339f73 100644 --- a/src/lxc/utils.h +++ b/src/lxc/utils.h @@ -56,6 +56,8 @@ static inline int setns(int fd, int nstype) { #ifdef __NR_setns return syscall(__NR_setns, fd, nstype); +#elif __NR_set_ns + return syscall(__NR_set_ns, fd, nstype); #else errno = ENOSYS; return -1;