diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2017-09-01 11:12:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-01 11:12:30 +0200 |
commit | fe38fce2d843625b7ff1b21ec8cd84cae6ff7c49 (patch) | |
tree | 4e1362da20d47b415a54f6b3a577c2b6fed8fef7 | |
parent | bbdf08bc0facb5157a10c794712dae7e5902be03 (diff) | |
parent | c9857ef262c391672b47e7714e61f1686b684e4d (diff) |
Merge pull request #1545 from trofi/glibc-2.26
src/libmain/stack.cc: fix 'ucontext' usage on glibc-2.26
-rw-r--r-- | src/libmain/stack.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmain/stack.cc b/src/libmain/stack.cc index ab3baf62c..cc0eea68f 100644 --- a/src/libmain/stack.cc +++ b/src/libmain/stack.cc @@ -18,9 +18,9 @@ static void sigsegvHandler(int signo, siginfo_t * info, void * ctx) bool haveSP = true; char * sp = 0; #if defined(__x86_64__) && defined(REG_RSP) - sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP]; + sp = (char *) ((ucontext_t *) ctx)->uc_mcontext.gregs[REG_RSP]; #elif defined(REG_ESP) - sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_ESP]; + sp = (char *) ((ucontext_t *) ctx)->uc_mcontext.gregs[REG_ESP]; #else haveSP = false; #endif |