From a1258e6dae5c973d4d50cb04050eab0bef578e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 24 Jan 2014 13:42:37 -0500 Subject: [PATCH] Fix previous change to use defined() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/lxc/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/utils.h b/src/lxc/utils.h index a07339f73..e148fd839 100644 --- a/src/lxc/utils.h +++ b/src/lxc/utils.h @@ -56,7 +56,7 @@ static inline int setns(int fd, int nstype) { #ifdef __NR_setns return syscall(__NR_setns, fd, nstype); -#elif __NR_set_ns +#elif defined(__NR_set_ns) return syscall(__NR_set_ns, fd, nstype); #else errno = ENOSYS;