* [LTP] [PATCH] syscalls/clone09.c: Fix compilation without CLONE_NEWNET
@ 2017-07-19 11:01 Xiao Yang
2017-07-19 11:58 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Xiao Yang @ 2017-07-19 11:01 UTC (permalink / raw)
To: ltp
Compilation failed on some older distributions(e.g. RHEL5.11) due
to undefined CLONE_NEWNET, so we include namespaces_constants.h to
fix it.
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
testcases/kernel/syscalls/clone/clone09.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/syscalls/clone/clone09.c b/testcases/kernel/syscalls/clone/clone09.c
index 15aa438..ad4dbfb 100644
--- a/testcases/kernel/syscalls/clone/clone09.c
+++ b/testcases/kernel/syscalls/clone/clone09.c
@@ -23,6 +23,7 @@
#include "tst_test.h"
#include "clone_platform.h"
#include "linux_syscall_numbers.h"
+#include "lapi/namespaces_constants.h"
static void *child_stack;
static int sysctl_net = -1;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] syscalls/clone09.c: Fix compilation without CLONE_NEWNET
2017-07-19 11:01 [LTP] [PATCH] syscalls/clone09.c: Fix compilation without CLONE_NEWNET Xiao Yang
@ 2017-07-19 11:58 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-07-19 11:58 UTC (permalink / raw)
To: ltp
Hi!
> #include "tst_test.h"
> #include "clone_platform.h"
> #include "linux_syscall_numbers.h"
> +#include "lapi/namespaces_constants.h"
^
I've removed this trailing whitespace and
pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-19 11:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-19 11:01 [LTP] [PATCH] syscalls/clone09.c: Fix compilation without CLONE_NEWNET Xiao Yang
2017-07-19 11:58 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox