public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] containers/netns: fix header file path for check_netns_enabled.c
@ 2014-03-06  8:55 Hangbin Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Hangbin Liu @ 2014-03-06  8:55 UTC (permalink / raw)
  To: ltp-list

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 testcases/kernel/containers/netns/check_netns_enabled.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/containers/netns/check_netns_enabled.c b/testcases/kernel/containers/netns/check_netns_enabled.c
index ab8ee2f..7bb2324 100644
--- a/testcases/kernel/containers/netns/check_netns_enabled.c
+++ b/testcases/kernel/containers/netns/check_netns_enabled.c
@@ -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


------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH] containers/netns: fix header file path for check_netns_enabled.c
@ 2014-03-06 14:54 Hangbin Liu
  2014-03-06 15:05 ` Jan Stancek
  0 siblings, 1 reply; 3+ messages in thread
From: Hangbin Liu @ 2014-03-06 14:54 UTC (permalink / raw)
  To: ltp-list

CLONE_NEWNET and CLONE_NEWNS are defined in linux/sched.h, not sched.h

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 testcases/kernel/containers/netns/check_netns_enabled.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/containers/netns/check_netns_enabled.c b/testcases/kernel/containers/netns/check_netns_enabled.c
index ab8ee2f..7bb2324 100644
--- a/testcases/kernel/containers/netns/check_netns_enabled.c
+++ b/testcases/kernel/containers/netns/check_netns_enabled.c
@@ -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


------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] containers/netns: fix header file path for check_netns_enabled.c
  2014-03-06 14:54 [LTP] [PATCH] containers/netns: fix header file path for check_netns_enabled.c Hangbin Liu
@ 2014-03-06 15:05 ` Jan Stancek
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Stancek @ 2014-03-06 15:05 UTC (permalink / raw)
  To: Hangbin Liu; +Cc: ltp-list



----- Original Message -----
> From: "Hangbin Liu" <liuhangbin@gmail.com>
> To: ltp-list@lists.sourceforge.net
> Sent: Thursday, 6 March, 2014 3:54:00 PM
> Subject: [LTP] [PATCH] 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

/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

> 
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
> ---
>  testcases/kernel/containers/netns/check_netns_enabled.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/testcases/kernel/containers/netns/check_netns_enabled.c
> b/testcases/kernel/containers/netns/check_netns_enabled.c
> index ab8ee2f..7bb2324 100644
> --- a/testcases/kernel/containers/netns/check_netns_enabled.c
> +++ b/testcases/kernel/containers/netns/check_netns_enabled.c
> @@ -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
> 
> 
> ------------------------------------------------------------------------------
> 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
> Ltp-list@lists.sourceforge.net
> 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-06 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 14:54 [LTP] [PATCH] containers/netns: fix header file path for check_netns_enabled.c Hangbin Liu
2014-03-06 15:05 ` Jan Stancek
  -- strict thread matches above, loose matches on Subject: below --
2014-03-06  8:55 Hangbin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox