]> granicus.if.org Git - strace/blobdiff - ptrace.h
Update NEWS
[strace] / ptrace.h
index aba61b79c39a0db4250366e3da030cecbfad6530..ddb46cb4010e2d7ec733c9d99825fdc6286c3cb1 100644 (file)
--- a/ptrace.h
+++ b/ptrace.h
@@ -67,6 +67,16 @@ extern long ptrace(int, int, char *, long);
 # undef ptrace_peeksiginfo_args
 #endif
 
+#if defined(SPARC) || defined(SPARC64)
+/*
+ * SPARC has a different PTRACE_DETACH value correctly defined in sys/ptrace.h,
+ * but linux/ptrace.h clobbers it with the standard one.  PTRACE_SUNDETACH is
+ * also defined to the correct value by sys/ptrace.h, so use that instead.
+ */
+# undef PTRACE_DETACH
+# define PTRACE_DETACH PTRACE_SUNDETACH
+#endif
+
 #ifndef PTRACE_EVENT_FORK
 # define PTRACE_EVENT_FORK     1
 #endif
@@ -176,4 +186,4 @@ extern long ptrace(int, int, char *, long);
 # define PTRACE_POKEUSER PTRACE_POKEUSR
 #endif
 
-#endif /* #ifndef STRACE_PTRACE_H */
+#endif /* !STRACE_PTRACE_H */