containers/netns: fix header file path for check_netns_enabled.c
PATCH 1/1 containers/netns: fix header file path for check_netns_enabled.c
CLONE_NEWNET and CLONE_NEWNS are defined in linux/sched.h, not sched.h
--- testcases/kernel/containers/netns/check_netns_enabled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/containers/netns/check_netns_enabled.c +1 -1
@@ -20,7 +20,7 @@* when trying to use CLONE_NEWNET and CLONE_NEWNS. ***************************************************************************/ #include <stdio.h> -#include <sched.h> +#include <linux/sched.h> #include "config.h" #include "libclone.h" #include "linux_syscall_numbers.h"
Signature · 13 lines
1.8.1.4 ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
----- Original Message -----
Quoted 6 lines
From: "Hangbin Liu" <[email protected]>
To: [email protected]
Sent: Thursday, 6 March, 2014 3:54:00 PM
Subject: [LTP] [PATCH] containers/netns: fix header file path forcheck_netns_enabled.c
CLONE_NEWNETandCLONE_NEWNSare defined inlinux/sched.h, notsched.h
/usr/include/bits/sched.h:# define CLONE_NEWNS 0x00020000 /* Set to create new namespace. */sched.h includes bits/sched.h
Where (distro, glibc version) do you see this fail when you include only sched.h?
Regards,
Jan
Quoted 24 lines
Signed-off-by Hangbin Liu <[email protected]>--- testcases/kernel/containers/netns/check_netns_enabled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)testcases/kernel/containers/netns/check_netns_enabled.c +1
-2@@ -20,7 +20,7 @@* when trying to use CLONE_NEWNET and CLONE_NEWNS. ***************************************************************************/ #include <stdio.h> -#include <sched.h> +#include <linux/sched.h> #include "config.h" #include "libclone.h" #include "linux_syscall_numbers.h" --1.8.1.4
Quoted 12 lines
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list