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
54bac49d
Commit
54bac49d
authored
Mar 02, 2010
by
antirez
Browse files
minor fix for a Linux warning
parent
ed745154
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
54bac49d
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <time.h>
#include <time.h>
#include <unistd.h>
#include <unistd.h>
#define __USE_POSIX199309
#define __USE_POSIX199309
#define __USE_UNIX98
#include <signal.h>
#include <signal.h>
#ifdef HAVE_BACKTRACE
#ifdef HAVE_BACKTRACE
...
@@ -8408,7 +8409,7 @@ static void *getMcontextEip(ucontext_t *uc) {
...
@@ -8408,7 +8409,7 @@ 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__)
|| defined(__x86_64__)
#elif defined(__i386__) || defined(__X86_64__) || defined(__x86_64__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
REG_EIP
];
/* Linux 32/64 bit */
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
;
...
...
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