diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h b/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h index 811a1568ffec..a7d3bfdc6d85 100644 --- a/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h +++ b/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h @@ -1,10 +1,15 @@ --- rpython/rlib/rvmprof/src/vmprof_config.h.orig 2016-03-19 14:27:46 UTC +++ rpython/rlib/rvmprof/src/vmprof_config.h -@@ -1,6 +1,6 @@ +@@ -1,5 +1,11 @@ #define HAVE_SYS_UCONTEXT_H - #if defined(__FreeBSD__) || defined(__APPLE__) --#define PC_FROM_UCONTEXT uc_mcontext.mc_rip +-#if defined(__FreeBSD__) || defined(__APPLE__) ++#if defined(__FreeBSD__) ++#if defined(__i386__) +#define PC_FROM_UCONTEXT uc_mcontext.mc_eip ++#else ++#define PC_FROM_UCONTEXT uc_mcontext.mc_rip ++#endif ++#elif defined(__APPLE__) + #define PC_FROM_UCONTEXT uc_mcontext.mc_rip #else #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP] - #endif |