CLONE_NEWNET and CLONE_NEWNS are defined in bit/sched.h, and need __USE_GNU defined first. Do the same as par_chld_ipv6.c and two_children_ns.c did, just define _GNU_SOURCE directly.
Signed-off-by: Hangbin Liu <liuhang...@gmail.com> --- testcases/kernel/containers/netns/check_netns_enabled.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testcases/kernel/containers/netns/check_netns_enabled.c b/testcases/kernel/containers/netns/check_netns_enabled.c index ab8ee2f..9c1d84a 100644 --- a/testcases/kernel/containers/netns/check_netns_enabled.c +++ b/testcases/kernel/containers/netns/check_netns_enabled.c @@ -19,6 +19,9 @@ * assume they are not enabled. Kernels after that, check for -EINVAL * when trying to use CLONE_NEWNET and CLONE_NEWNS. ***************************************************************************/ + +#define _GNU_SOURCE + #include <stdio.h> #include <sched.h> #include "config.h" -- 1.8.1.4 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list