From 92e23841a270bc48fc4a63fcac833e6d112486eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Fri, 24 Jan 2014 13:27:26 -0500 Subject: [PATCH] Support __NR_set_ns as well. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Apparently some older systems didn't have __NR_setns but had __NR_set_ns. Signed-off-by: Stéphane Graber --- src/lxc/utils.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.2