Make sure <execinfo.h> is actually included when needed.
configure only defines HAVE_BACKTRACE, not HAVE_EXECINFO_H. This could cause problems on platforms where the size of a pointer is greater than that of an integer, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363218 .
This commit is contained in:
parent
4426215a6e
commit
36756fdb2d
|
@ -1255,12 +1255,8 @@ xf86InterceptSigIll(void (*sigillhandler)(void))
|
||||||
xf86SigIllHandler = sigillhandler;
|
xf86SigIllHandler = sigillhandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_EXECINFO_H
|
|
||||||
#define HAVE_BACKTRACE
|
|
||||||
#include <execinfo.h>
|
|
||||||
#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