mirror of https://mirror.osredm.com/root/redis.git
Merge pull request #79 from annulen/mac_ppc
Fixed compilation on Mac/PPC
This commit is contained in:
commit
5bae401107
|
@ -1784,8 +1784,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__)
|
||||
|
|
Loading…
Reference in New Issue