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:
Spoike 2019-12-16 17:22:37 +00:00
parent 0cf6128ffe
commit 5fa62eb2d0
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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;