1
0
Fork 0
forked from fte/fteqw

Fix for that because bigfoot is too lazy. If its not running on linux, we don't care if it crashes. or something.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3826 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-06-18 17:04:47 +00:00
parent 58c2c63708
commit ad1499d670

View file

@ -637,6 +637,7 @@ void Sys_Shutdown (void)
{
}
#ifdef __linux__ /*should probably be GNUC but whatever*/
#include <execinfo.h>
static void Friendly_Crash_Handler(int sig)
{
@ -662,6 +663,7 @@ static void Friendly_Crash_Handler(int sig)
}
exit(1);
}
#endif
/*
=============
@ -687,6 +689,7 @@ int main(int argc, char *argv[])
parms.argc = com_argc;
parms.argv = com_argv;
#ifdef __linux__
if (COM_CheckParm("-dumpstack"))
{
signal(SIGILL, Friendly_Crash_Handler);
@ -694,6 +697,7 @@ int main(int argc, char *argv[])
signal(SIGSEGV, Friendly_Crash_Handler);
signal(SIGBUS, Friendly_Crash_Handler);
}
#endif
parms.memsize = 16*1024*1024;