public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscall/ioctl: fix compiler error
@ 2019-05-13  1:46 Jinhui huang
  2019-05-14 13:02 ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Jinhui huang @ 2019-05-13  1:46 UTC (permalink / raw)
  To: ltp

"CLONE_NEWPID" and "CLONE_NEWUSER" are not defined on some old distros,
so include "lapi/namespaces_constants.h" to fix it.

Signed-off-by: Jinhui huang <huangjh.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/ioctl/ioctl_ns01.c | 1 +
 testcases/kernel/syscalls/ioctl/ioctl_ns05.c | 1 +
 testcases/kernel/syscalls/ioctl/ioctl_ns06.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ns01.c b/testcases/kernel/syscalls/ioctl/ioctl_ns01.c
index 59b215f..f2c77a0 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_ns01.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_ns01.c
@@ -19,6 +19,7 @@
 #include <sched.h>
 #include "tst_test.h"
 #include "lapi/ioctl_ns.h"
+#include "lapi/namespaces_constants.h"
 
 #define STACK_SIZE (1024 * 1024)
 
diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ns05.c b/testcases/kernel/syscalls/ioctl/ioctl_ns05.c
index add6980..bdef4d6 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_ns05.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_ns05.c
@@ -18,6 +18,7 @@
 #include <sched.h>
 #include "tst_test.h"
 #include "lapi/ioctl_ns.h"
+#include "lapi/namespaces_constants.h"
 
 #define STACK_SIZE (1024 * 1024)
 
diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ns06.c b/testcases/kernel/syscalls/ioctl/ioctl_ns06.c
index f077a3b..eabb7e4 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_ns06.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_ns06.c
@@ -19,6 +19,7 @@
 #include <sched.h>
 #include "tst_test.h"
 #include "lapi/ioctl_ns.h"
+#include "lapi/namespaces_constants.h"
 
 #define STACK_SIZE (1024 * 1024)
 
-- 
1.8.3.1




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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-13  1:46 [LTP] [PATCH] syscall/ioctl: fix compiler error Jinhui huang
2019-05-14 13:02 ` Petr Vorel
2019-05-14 14:11   ` Cyril Hrubis
2019-05-15  5:21   ` jinhui huang
2019-05-15  6:03     ` Petr Vorel

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