Skip to contentSkip to conversation

syscalls/clone09.c: Fix compilation without CLONE_NEWNET

PATCH New Xiao Yang 2 participants 2 messages Jul 19, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/clone09.c: Fix compilation without CLONE_NEWNET

Compilation failed on some older distributions(e.g. RHEL5.11) due to undefined CLONE_NEWNET, so we include namespaces_constants.h to fix it.

---
 testcases/kernel/syscalls/clone/clone09.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/clone/clone09.c +1 -0
index 15aa438..ad4dbfb 100644
@@ -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;
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 syscalls/clone09.c: Fix compilation without CLONE_NEWNET

Hi!

Quoted 4 lines

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

Signature · 2 lines
Cyril Hrubis
[email protected]