commit | 1ff6b16e2d5b291fd3cc5405c492d9b27d596d0a | [log] [tgz] |
---|---|---|
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | Thu Jan 15 11:36:25 2015 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Thu Feb 05 10:11:51 2015 -0800 |
tree | f09a8146f2edba9ec8c1b065e9eda8e7c77c4350 | |
parent | ffff693130e9d6e4184df27835012e46c6abd58d [diff] |
lib: fix setns() function when !HAVE_SETNS When HAVE_SETNS is not set, iproute2 provides a local implementation of this function based on __NR_setns. This macro is defined in sys/syscall.h, which was not included, thus the local implementation always returned -1. CC: Vadim Kochan <vadim4j@gmail.com> Fixes: eb67e4498aec ("lib: Add netns_switch func for change network namespace") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>