mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 01:00:33 -04:00
15 lines
537 B
C
15 lines
537 B
C
--- src/redis.c.orig 2011-11-28 14:22:08.000000000 +0400
|
|
+++ src/redis.c 2011-12-02 06:23:15.000000000 +0400
|
|
@@ -1685,7 +1685,11 @@
|
|
#ifdef HAVE_BACKTRACE
|
|
static void *getMcontextEip(ucontext_t *uc) {
|
|
#if defined(__FreeBSD__)
|
|
- return (void*) uc->uc_mcontext.mc_eip;
|
|
+ #if __x86_64__
|
|
+ return (void*) uc->uc_mcontext.mc_rip;
|
|
+ #elif __i386__
|
|
+ return (void*) uc->uc_mcontext.mc_eip;
|
|
+ #endif
|
|
#elif defined(__dietlibc__)
|
|
return (void*) uc->uc_mcontext.eip;
|
|
#elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
|