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
cbc59b38
Commit
cbc59b38
authored
Jul 24, 2009
by
antirez
Browse files
more snow leopard related fixes (for 32bit systems)
parent
06db1f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
cbc59b38
...
...
@@ -4308,7 +4308,11 @@ static void *getMcontextEip(ucontext_t *uc) {
#elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
return
(
void
*
)
uc
->
uc_mcontext
->
__ss
.
__eip
;
#elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)
#ifdef _STRUCT_X86_THREAD_STATE64
return
(
void
*
)
uc
->
uc_mcontext
->
__ss
.
__rip
;
#else
return
(
void
*
)
uc
->
uc_mcontext
->
__ss
.
__eip
;
#endif
#elif defined(__i386__) || defined(__X86_64__)
/* Linux x86 */
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
REG_EIP
];
#elif defined(__ia64__)
/* Linux IA64 */
...
...
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