For a few linux releases (3.1 through 3.3), this define in the exported
headers were broken.  Undefine it that's the case.

* ptrace.h [PTRACE_EVENT_STOP]: Undefine if PTRACE_EVENT_STOP is 7.
---
 ptrace.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ptrace.h b/ptrace.h
index 1a5414d..065cbda 100644
--- a/ptrace.h
+++ b/ptrace.h
@@ -50,6 +50,12 @@ extern long ptrace(int, int, char *, long);
 #ifndef PTRACE_EVENT_SECCOMP
 # define PTRACE_EVENT_SECCOMP  7
 #endif
+#ifdef PTRACE_EVENT_STOP
+/* Linux 3.1 - 3.3 releases had a broken value.  It was fixed in 3.4.  */
+# if PTRACE_EVENT_STOP == 7
+#  undef PTRACE_EVENT_STOP
+# endif
+#endif
 #ifndef PTRACE_EVENT_STOP
 # define PTRACE_EVENT_STOP     128
 #endif
-- 
2.3.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to