From 60df08c11c3120defb69566a6414d5be599c818a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 23 Jan 2024 20:25:17 +0300 Subject: [PATCH] engine: crashhandler: fix build for NetBSD AMD64 --- engine/common/crashhandler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/crashhandler.c b/engine/common/crashhandler.c index c265b443..1188d103 100644 --- a/engine/common/crashhandler.c +++ b/engine/common/crashhandler.c @@ -372,9 +372,9 @@ static void Sys_Crash( int signal, siginfo_t *si, void *context) bp = (void**)ucontext->uc_mcontext.mc_rbp; sp = (void**)ucontext->uc_mcontext.mc_rsp; #elif XASH_NETBSD - pc = (void*)ucontext->uc_mcontext.__gregs[REG_RIP]; - bp = (void**)ucontext->uc_mcontext.__gregs[REG_RBP]; - sp = (void**)ucontext->uc_mcontext.__gregs[REG_RSP]; + pc = (void*)ucontext->uc_mcontext.__gregs[_REG_RIP]; + bp = (void**)ucontext->uc_mcontext.__gregs[_REG_RBP]; + sp = (void**)ucontext->uc_mcontext.__gregs[_REG_RSP]; #elif XASH_OPENBSD pc = (void*)ucontext->sc_rip; bp = (void**)ucontext->sc_rbp;