Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ef9444e0
Commit
ef9444e0
authored
Sep 01, 2011
by
Konstantin Tokarev
Browse files
Fixed compilation on Mac/PPC
Applied patch from Issue 119 provided by pahowes@gmail.com
parent
b5656701
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
ef9444e0
...
...
@@ -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
;
#el
se
#el
if __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__)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment