Merge pull request #630 from tsuna/master

Handle SYS_setns not existing but __NR_setns does.
This commit is contained in:
Michael Crosby 2015-06-15 10:34:30 -07:00
commit 73eab50ed6
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ static int child_func(void *_arg)
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 14
#define _GNU_SOURCE
#include "syscall.h"
#if defined(__NR_setns) && !defined(SYS_setns)
#define SYS_setns __NR_setns
#endif
#ifdef SYS_setns
int setns(int fd, int nstype)
{