From 3fe9bed80ea731b22a20d4c0d3eb5090a5af8819 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 7 Nov 2012 21:21:04 +0000 Subject: [PATCH] E: should now compile on Mac OS X. SVN revision: 78977 --- src/bin/e_start_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c index 4fed2b147..201f4b588 100644 --- a/src/bin/e_start_main.c +++ b/src/bin/e_start_main.c @@ -394,7 +394,7 @@ main(int argc, char **argv) else if (child == 0) { /* in the child */ - ptrace(PTRACE_TRACEME, 0, NULL, NULL); + ptrace(PT_TRACE_ME, 0, NULL, NULL); execv(args[0], args); return 0; /* We failed, 0 mean normal exit from E with no restart or crash so let exit */ @@ -406,12 +406,12 @@ main(int argc, char **argv) int status; Eina_Bool done = EINA_FALSE; - ptrace(PTRACE_ATTACH, child, NULL, NULL); + ptrace(PT_ATTACH, child, NULL, NULL); result = waitpid(child, &status, 0); if (WIFSTOPPED(status)) - ptrace(PTRACE_CONT, child, NULL, NULL); + ptrace(PT_CONTINUE, child, NULL, NULL); while (!done) { @@ -454,12 +454,12 @@ main(int argc, char **argv) sig.si_signo != SIGBUS && sig.si_signo != SIGABRT)) { - ptrace(PTRACE_CONT, child, NULL, back); + ptrace(PT_CONTINUE, child, NULL, back); continue ; } /* E17 should be in pause, we can detach */ - ptrace(PTRACE_DETACH, child, NULL, back); + ptrace(PT_DETACH, child, NULL, back); /* And call gdb if available */ if (home)