From c1a96d3ff1e3be4d6610635a4ed5fb72d519adfe Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 9 Feb 2025 15:51:21 +0300 Subject: [PATCH] engine: platform: posix: fix build --- engine/platform/posix/crash_libbacktrace.c | 2 +- engine/platform/posix/crash_posix.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/platform/posix/crash_libbacktrace.c b/engine/platform/posix/crash_libbacktrace.c index 04d4418c..46b7627e 100644 --- a/engine/platform/posix/crash_libbacktrace.c +++ b/engine/platform/posix/crash_libbacktrace.c @@ -168,7 +168,7 @@ void Sys_CrashLibbacktrace( int signal, siginfo_t *si, void *context ) Sys_Quit( "crashed" ); } -qboolean Sys_SetupLibbacktrace( void ) +qboolean Sys_SetupLibbacktrace( const char *argv0 ) { enable_libbacktrace = true; g_bt_state = backtrace_create_state( argv0, true, Sys_BacktraceError, NULL ); diff --git a/engine/platform/posix/crash_posix.c b/engine/platform/posix/crash_posix.c index 63ad5ecb..f8460ef2 100644 --- a/engine/platform/posix/crash_posix.c +++ b/engine/platform/posix/crash_posix.c @@ -29,7 +29,7 @@ GNU General Public License for more details. void Sys_Crash( int signal, siginfo_t *si, void *context ); void Sys_CrashLibbacktrace( int signal, siginfo_t *si, void *context ); -qboolean Sys_SetupLibbacktrace( void ); +qboolean Sys_SetupLibbacktrace( const char *argv0 ); static struct sigaction oldFilter; #if !HAVE_EXECINFO && !HAVE_LIBBACKTRACE @@ -212,7 +212,7 @@ void Sys_SetupCrashHandler( const char *argv0 ) { struct sigaction act = { 0 }; #if HAVE_LIBBACKTRACE - if( Sys_SetupLibbacktrace()) + if( Sys_SetupLibbacktrace( argv0 )) { act.sa_sigaction = Sys_CrashLibbacktrace; }