[PATCH 06/18] user-cr: Fixup sched.h include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In file included from restart.c:34:
/opt/crosstool/gcc-4.2.4-glibc-2.3.6/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/4.2.4/../../../../i686-unknown-linux-gnu/sys-include/linux/sched.h:109: error: redefinition of 'struct sched_param'

That include was added in 8fc8b640f8674d6de553cded539d24e08fac6f34
which added some pidns bits using CLONE_NEWPID. Looks like linux/sched.h
was included for this definition but it no longer seems necessary.

The same problem exists in test/ipcshm_multi.c

Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx>
---
 restart.c           |    1 -
 test/ipcshm_multi.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/restart.c b/restart.c
index 78d21c0..09e5490 100644
--- a/restart.c
+++ b/restart.c
@@ -34,7 +34,6 @@
 #include <stdarg.h>
 #include <assert.h>
 
-#include <linux/sched.h>
 #include <linux/checkpoint.h>
 #include <linux/checkpoint_hdr.h>
 
diff --git a/test/ipcshm_multi.c b/test/ipcshm_multi.c
index da37feb..98cd82f 100644
--- a/test/ipcshm_multi.c
+++ b/test/ipcshm_multi.c
@@ -7,7 +7,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-#include <linux/sched.h>
 #include <sched.h>
 
 /* For CLONE_NEWIPC */
-- 
1.6.3.3

_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux