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
c04c9ac9
Commit
c04c9ac9
authored
Dec 29, 2009
by
antirez
Browse files
minor fix for Linux 64 bit
parent
4409877e
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
c04c9ac9
...
@@ -6598,8 +6598,8 @@ static void *getMcontextEip(ucontext_t *uc) {
...
@@ -6598,8 +6598,8 @@ static void *getMcontextEip(ucontext_t *uc) {
#else
#else
return
(
void
*
)
uc
->
uc_mcontext
->
__ss
.
__eip
;
return
(
void
*
)
uc
->
uc_mcontext
->
__ss
.
__eip
;
#endif
#endif
#elif defined(__i386__) || defined(__X86_64__)
/* Linux x86 */
#elif defined(__i386__) || defined(__X86_64__)
|| defined(__x86_64__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
REG_EIP
];
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
REG_EIP
];
/* Linux 32/64 bit */
#elif defined(__ia64__)
/* Linux IA64 */
#elif defined(__ia64__)
/* Linux IA64 */
return
(
void
*
)
uc
->
uc_mcontext
.
sc_ip
;
return
(
void
*
)
uc
->
uc_mcontext
.
sc_ip
;
#else
#else
...
...
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