engine: platform: posix: fix build

This commit is contained in:
Alibek Omarov 2025-02-09 15:51:21 +03:00
parent e27d20dfa3
commit c1a96d3ff1
2 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ void Sys_CrashLibbacktrace( int signal, siginfo_t *si, void *context )
Sys_Quit( "crashed" ); Sys_Quit( "crashed" );
} }
qboolean Sys_SetupLibbacktrace( void ) qboolean Sys_SetupLibbacktrace( const char *argv0 )
{ {
enable_libbacktrace = true; enable_libbacktrace = true;
g_bt_state = backtrace_create_state( argv0, true, Sys_BacktraceError, NULL ); g_bt_state = backtrace_create_state( argv0, true, Sys_BacktraceError, NULL );

View file

@ -29,7 +29,7 @@ GNU General Public License for more details.
void Sys_Crash( int signal, siginfo_t *si, void *context ); void Sys_Crash( int signal, siginfo_t *si, void *context );
void Sys_CrashLibbacktrace( 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; static struct sigaction oldFilter;
#if !HAVE_EXECINFO && !HAVE_LIBBACKTRACE #if !HAVE_EXECINFO && !HAVE_LIBBACKTRACE
@ -212,7 +212,7 @@ void Sys_SetupCrashHandler( const char *argv0 )
{ {
struct sigaction act = { 0 }; struct sigaction act = { 0 };
#if HAVE_LIBBACKTRACE #if HAVE_LIBBACKTRACE
if( Sys_SetupLibbacktrace()) if( Sys_SetupLibbacktrace( argv0 ))
{ {
act.sa_sigaction = Sys_CrashLibbacktrace; act.sa_sigaction = Sys_CrashLibbacktrace;
} }