From ef9444e0d27d251672b12336ebc6568424406683 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 1 Sep 2011 22:16:20 +0400 Subject: [PATCH] Fixed compilation on Mac/PPC Applied patch from Issue 119 provided by pahowes@gmail.com --- src/redis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 6b92018d..422ab4b9 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1773,8 +1773,10 @@ static void *getMcontextEip(ucontext_t *uc) { #elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6) #if __x86_64__ return (void*) uc->uc_mcontext->__ss.__rip; - #else + #elif __i386__ return (void*) uc->uc_mcontext->__ss.__eip; + #else + return (void*) uc->uc_mcontext->__ss.__srr0; #endif #elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6) #if defined(_STRUCT_X86_THREAD_STATE64) && !defined(__i386__)