--- ./sys-utils/nsenter.c.old 2015-07-05 16:52:46.647403046 +0200 +++ ./sys-utils/nsenter.c 2015-07-05 16:53:25.739623550 +0200 @@ -95,6 +95,13 @@ static int root_fd = -1; static int wd_fd = -1; +# if !defined(HAVE_SETNS) && defined(SYS_setns) +int setns(int fd, int nstype) +{ + return syscall(SYS_setns, fd, nstype); +} +# endif + static void open_target_fd(int *fd, const char *type, const char *path) { char pathbuf[PATH_MAX]; --- ./include/namespace.h.old 2015-07-05 16:49:57.942451450 +0200 +++ ./include/namespace.h 2015-07-05 16:53:31.095653761 +0200 @@ -34,11 +34,4 @@ } # endif -# if !defined(HAVE_SETNS) && defined(SYS_setns) -static inline int setns(int fd, int nstype) -{ - return syscall(SYS_setns, fd, nstype); -} -# endif - #endif /* UTIL_LINUX_NAMESPACE_H */