[CRIU] [PATCH] ptrace: check, that PTRACE_LISTEN isn't defined yet

Andrew Vagin avagin at openvz.org
Sat Dec 21 12:50:27 PST 2013


In file included from arch/x86/crtools.c:11:0:
include/ptrace.h:16:0: error: "PTRACE_LISTEN" redefined [-Werror]
 #define PTRACE_LISTEN  0x4208
 ^
In file included from include/ptrace.h:5:0,
                 from arch/x86/crtools.c:11:
/usr/include/sys/ptrace.h:150:0: note: this is the location of the previous definition
 #define PTRACE_LISTEN PTRACE_LISTEN
 ^
cc1: all warnings being treated as errors
make[1]: *** [arch/x86/crtools.o] Error 1

Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 include/ptrace.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/ptrace.h b/include/ptrace.h
index ce892b0..46b6def 100644
--- a/include/ptrace.h
+++ b/include/ptrace.h
@@ -13,7 +13,9 @@
 # define PTRACE_INTERRUPT	0x4207
 #endif
 
+#ifndef PTRACE_LISTEN
 #define PTRACE_LISTEN		0x4208
+#endif
 
 #ifndef PTRACE_PEEKSIGINFO
 #define PTRACE_PEEKSIGINFO      0x4209
-- 
1.8.4.2



More information about the CRIU mailing list