Fix previous change to use defined()

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-01-24 13:42:37 -05:00
parent 92e23841a2
commit a1258e6dae
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View 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;