From e3d2a7d57bc57453d66aa63ca7fe4d910b64737c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Oct 2005 06:29:14 +0000 Subject: [PATCH] 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) --- hw/xfree86/common/xf86Events.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index d9157b163..048ee4561 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c @@ -1277,14 +1277,12 @@ xf86InterceptSigIll(void (*sigillhandler)(void)) xf86SigIllHandler = sigillhandler; } -#if defined(__GLIBC__) -# if __GLIBC_PREREQ(2, 1) -# define HAVE_BACKTRACE -# endif +#ifdef HAVE_EXECINFO_H +#define HAVE_BACKTRACE +#include #endif #ifdef HAVE_BACKTRACE -#include static __inline__ void xorg_backtrace(void) {