aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx/glapi_gentable.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glx/glapi_gentable.c')
-rw-r--r--xorg-server/glx/glapi_gentable.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xorg-server/glx/glapi_gentable.c b/xorg-server/glx/glapi_gentable.c
index 9e99429a4..55ef2232b 100644
--- a/xorg-server/glx/glapi_gentable.c
+++ b/xorg-server/glx/glapi_gentable.c
@@ -31,7 +31,7 @@
#include <dix-config.h>
#endif
-#if defined(DEBUG) && !defined(_WIN32_WCE)
+#ifdef HAVE_BACKTRACE
#include <execinfo.h>
#endif
@@ -51,6 +51,8 @@ __glapi_gentable_NoOp(void) {
#if defined(DEBUG) && !defined(_WIN32_WCE)
if (getenv("MESA_DEBUG") || getenv("LIBGL_DEBUG")) {
const char *fstr = "Unknown";
+
+#ifdef HAVE_BACKTRACE
void *frames[2];
if(backtrace(frames, 2) == 2) {
@@ -59,6 +61,7 @@ __glapi_gentable_NoOp(void) {
if(info.dli_sname)
fstr = info.dli_sname;
}
+#endif
LogMessage(X_ERROR, "GLX: Call to unimplemented API: %s\n", fstr);
}