freebsd-ports/devel/strace/files/patch-process.c
Jimmy Olgeni ced6dcdf02 Fix compilation problem (both -CURRENT and -STABLE), due to PT_READ_U
removal from sys/ptrace.h. Also, fix the incorrect PT_READ_U label.

PR:		30878
Submitted by:	Maxime Henrion <mux@qualys.com>
2001-10-11 10:47:35 +00:00

13 lines
387 B
C

--- process.c.old Thu Sep 27 22:08:22 2001
+++ process.c Thu Sep 27 22:08:57 2001
@@ -1771,7 +1771,9 @@
{ PT_READ_D, "PT_READ_D" },
{ PT_WRITE_I, "PT_WRITE_I" },
{ PT_WRITE_D, "PT_WRITE_D" },
- { PT_READ_U, "PT_WRITE_U" },
+#ifdef PT_READ_U
+ { PT_READ_U, "PT_READ_U" },
+#endif
{ PT_CONTINUE, "PT_CONTINUE" },
{ PT_KILL, "PT_KILL" },
{ PT_STEP, "PT_STEP" },