Bug #4393: uClibc lies and defines __GLIBC__ even though it's not source
compatible with glibc, so the backtrace support check fails. Work around this by wrapping the code in a configure check for execinfo.h, and emulate detection for the monolith. (Yuri Vasilevski)
This commit is contained in:
parent
5037d3441d
commit
e3d2a7d57b
|
@ -1277,14 +1277,12 @@ xf86InterceptSigIll(void (*sigillhandler)(void))
|
||||||
xf86SigIllHandler = sigillhandler;
|
xf86SigIllHandler = sigillhandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GLIBC__)
|
#ifdef HAVE_EXECINFO_H
|
||||||
# if __GLIBC_PREREQ(2, 1)
|
|
||||||
#define HAVE_BACKTRACE
|
#define HAVE_BACKTRACE
|
||||||
# endif
|
#include <execinfo.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_BACKTRACE
|
#ifdef HAVE_BACKTRACE
|
||||||
#include <execinfo.h>
|
|
||||||
|
|
||||||
static __inline__ void xorg_backtrace(void)
|
static __inline__ void xorg_backtrace(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user