Skip to contentSkip to conversation

containers/netns: fix header file path for check_netns_enabled.c

PATCH In review Hangbin Liu 2 participants 2 messages Mar 6, 2014

lore
Share & tools
lore
#0 lore raw

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
index ab8ee2f..7bb2324 100644
@@ -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
#1 lore raw

----- 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 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

Quoted 24 lines
---
 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
index ab8ee2f..7bb2324 100644
@@ -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