mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: crashhandler: fix build on FreeBSD (and probably on NetBSD and OpenBSD)
This commit is contained in:
parent
aaeb18f433
commit
ef1572b15b
@ -353,7 +353,7 @@ static void Sys_Crash( int signal, siginfo_t *si, void *context)
|
|||||||
len = Q_snprintf( message, sizeof( message ), "Ver: " XASH_ENGINE_NAME " " XASH_VERSION " (build %i-%s, %s-%s)\n",
|
len = Q_snprintf( message, sizeof( message ), "Ver: " XASH_ENGINE_NAME " " XASH_VERSION " (build %i-%s, %s-%s)\n",
|
||||||
Q_buildnum(), Q_buildcommit(), Q_buildos(), Q_buildarch() );
|
Q_buildnum(), Q_buildcommit(), Q_buildos(), Q_buildarch() );
|
||||||
|
|
||||||
#if !XASH_BSD
|
#if !XASH_FREEBSD && !XASH_NETBSD && !XASH_OPENBSD
|
||||||
len += Q_snprintf( message + len, sizeof( message ) - len, "Crash: signal %d errno %d with code %d at %p %p\n", signal, si->si_errno, si->si_code, si->si_addr, si->si_ptr );
|
len += Q_snprintf( message + len, sizeof( message ) - len, "Crash: signal %d errno %d with code %d at %p %p\n", signal, si->si_errno, si->si_code, si->si_addr, si->si_ptr );
|
||||||
#else
|
#else
|
||||||
len += Q_snprintf( message + len, sizeof( message ) - len, "Crash: signal %d errno %d with code %d at %p\n", signal, si->si_errno, si->si_code, si->si_addr );
|
len += Q_snprintf( message + len, sizeof( message ) - len, "Crash: signal %d errno %d with code %d at %p\n", signal, si->si_errno, si->si_code, si->si_addr );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user