From fc3a5ebd3de35b6716a01513b7a17bcd6fa409f0 Mon Sep 17 00:00:00 2001 From: Victor Konyashkin Date: Tue, 31 Jul 2012 15:07:07 +0400 Subject: [PATCH] zdtm: It's need define CLONE_NEWPID for redhat-el5 The patch allows define CLONE_NEWPID for redhat-el5 to avoid error: test_init.c:114: error: 'CLONE_NEWPID' undeclared (first use in this function) Signed-off-by: Victor Konyashkin Acked-by: Andrey Wagin Signed-off-by: Pavel Emelyanov --- test/zdtm/lib/test_init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/zdtm/lib/test_init.c b/test/zdtm/lib/test_init.c index a75c3354a..5d9422aaf 100644 --- a/test/zdtm/lib/test_init.c +++ b/test/zdtm/lib/test_init.c @@ -11,6 +11,10 @@ #include #define STACK_SIZE (8 * 4096) +#ifndef CLONE_NEWPID +/* CLONE_NEWPID since Linux 2.6.24 */ +#define CLONE_NEWPID 0x20000000 +#endif static int sig_received; static char dir[PATH_MAX];