From 87c15681b2827e700b39186381276a5fda2258d7 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Mon, 12 May 2003 03:07:45 +0000 Subject: [PATCH] Add support for Darwin's ptrace. --- server/context_powerpc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/context_powerpc.c b/server/context_powerpc.c index 6b7178bfca1..fca6225de37 100644 --- a/server/context_powerpc.c +++ b/server/context_powerpc.c @@ -33,6 +33,18 @@ # include #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"