]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Fix previous change to use defined()
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 18:42:37 +0000 (13:42 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 18:42:37 +0000 (13:42 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/utils.h

index a07339f7367d4b456ac8d369e1e24caf47d03063..e148fd839c611f98d5aefe2d1ed22965bb748f32 100644 (file)
@@ -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;