From: Stéphane Graber Date: Fri, 24 Jan 2014 18:42:37 +0000 (-0500) Subject: Fix previous change to use defined() X-Git-Tag: lxc-1.0.0.beta3~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1258e6dae5c973d4d50cb04050eab0bef578e4d;p=thirdparty%2Flxc.git Fix previous change to use defined() Signed-off-by: Stéphane Graber --- 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;