Mac OS X: Add support for darwin's PTrace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Darwin has PT_READ_D and PT_WRITE_D instead of PTRACE_PEEKUSER and PTRACE_POKEUSER. So if no PTRACE_* are defined and PT_* are defined we make a link to join them together.

ChangeLog:
Add Support for Darwin's PTrace.

Index: server/context_powerpc.c
===================================================================
RCS file: /home/wine/wine/server/context_powerpc.c,v
retrieving revision 1.6
diff -u -r1.6 context_powerpc.c
--- server/context_powerpc.c	22 Mar 2003 21:00:09 -0000	1.6
+++ server/context_powerpc.c	11 May 2003 19:35:03 -0000
@@ -33,6 +33,18 @@
 # include <sys/ptrace.h>
 #endif
 
+#ifndef PTRACE_PEEKUSER
+# ifdef PT_READ_D
+#  define PTRACE_PEEKUSER PT_READ_D
+# endif
+#endif /* PTRACE_PEEKUSER */
+
+#ifndef PTRACE_POKEUSER
+# ifdef PT_WRITE_D
+#  define PTRACE_POKEUSER PT_WRITE_D
+# endif
+#endif /* PTRACE_POKEUSER */
+
 #include "winbase.h"
 
 #include "file.h"


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux