about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-01-13 17:27:36 +0100
committerptitSeb <sebastien.chev@gmail.com>2025-01-13 17:27:36 +0100
commitbcc497c865b4a7a5717a6aefb6c03b3d1c4c1856 (patch)
tree5ba0fe4b6f238c3232ac5dc6dd40499e0c70d6a5 /src/libtools
parent2414f82c38da0aad610ee6ad9f9c7eacc753ee59 (diff)
downloadbox64-bcc497c865b4a7a5717a6aefb6c03b3d1c4c1856.tar.gz
box64-bcc497c865b4a7a5717a6aefb6c03b3d1c4c1856.zip
This should fix the non-dynarec build
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/signals.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c
index b309b5f70..03ed14e2 100644
--- a/src/libtools/signals.c
+++ b/src/libtools/signals.c
@@ -2005,14 +2005,15 @@ dynarec_log(/*LOG_DEBUG*/LOG_INFO, "Repeated SIGSEGV with Access error on %p for
 
 void my_sigactionhandler(int32_t sig, siginfo_t* info, void * ucntx)
 {
+    void* pc = NULL;
     #ifdef DYNAREC
     ucontext_t *p = (ucontext_t *)ucntx;
     #ifdef ARM64
-    void * pc = (void*)p->uc_mcontext.pc;
+    pc = (void*)p->uc_mcontext.pc;
     #elif defined(LA64)
-    void * pc = (void*)p->uc_mcontext.__pc;
+    pc = (void*)p->uc_mcontext.__pc;
     #elif defined(RV64)
-    void * pc = (void*)p->uc_mcontext.__gregs[0];
+    pc = (void*)p->uc_mcontext.__gregs[0];
     #else
     #error Unsupported architecture
     #endif