mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
backtrace stuff is glibc, not gnuc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5589 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0cf6128ffe
commit
5fa62eb2d0
2 changed files with 4 additions and 4 deletions
|
@ -781,7 +781,7 @@ void *Sys_GetAddressForName(dllhandle_t *module, const char *exportname)
|
|||
|
||||
// =======================================================================
|
||||
//friendly way to crash, including stack traces. should help reduce gdb use.
|
||||
#if defined(__linux__) && defined(__GNUC__) /*should probably be GNUC but whatever*/
|
||||
#if defined(__linux__) && defined(__GLIBC__) /*should probably be GNUC but whatever*/
|
||||
#include <execinfo.h>
|
||||
#ifdef __i386__
|
||||
#include <ucontext.h>
|
||||
|
@ -987,7 +987,7 @@ int main (int c, const char **v)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && defined(__GNUC__)
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
if (!COM_CheckParm("-nodumpstack"))
|
||||
{
|
||||
struct sigaction act;
|
||||
|
|
|
@ -647,7 +647,7 @@ void Sys_Shutdown (void)
|
|||
{
|
||||
}
|
||||
|
||||
#if defined(__linux__) && defined(__GNUC__)
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
#include <execinfo.h>
|
||||
#ifdef __i386__
|
||||
#include <ucontext.h>
|
||||
|
@ -937,7 +937,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
|
||||
|
||||
#if defined(__linux__) && defined(__GNUC__)
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
if (!COM_CheckParm("-nodumpstack"))
|
||||
{
|
||||
struct sigaction act;
|
||||
|
|
Loading…
Reference in a new issue