Fix compilation on ARM
size_t i is needed if HAVE_EXECINFO_H is defined
This commit is contained in:
parent
ef6ee6a049
commit
5286020560
|
@ -64,7 +64,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
|
|||
const char *si_code_str;
|
||||
ucontext_t *ucontext = (ucontext_t*)ptr;
|
||||
|
||||
#if defined(HAVE_UCONTEXT) && defined(HAVE_NGREG)
|
||||
#if (defined(HAVE_UCONTEXT) && defined(HAVE_NGREG)) || defined(HAVE_EXECINFO_H)
|
||||
size_t i;
|
||||
#endif
|
||||
#if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64)
|
||||
|
|
Loading…
Reference in New Issue