From 16d8cf513a954ab3bfe469d1cf94340e25ebfc98 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 29 Aug 2005 20:13:15 +0000 Subject: Check for execinfo.h. Fixes bug #314776. 2005-08-29 Christian Persch * configure.ac: * lib/ephy-debug.c: (trap_handler): Check for execinfo.h. Fixes bug #314776. --- lib/ephy-debug.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/ephy-debug.c b/lib/ephy-debug.c index d999e7b3a..a8c35902d 100644 --- a/lib/ephy-debug.c +++ b/lib/ephy-debug.c @@ -109,11 +109,15 @@ trap_handler (const char *log_domain, } else if (strcmp (ephy_debug_break, "stack") == 0) { +#ifdef HAVE_EXECINFO_H void *array[MAX_DEPTH]; size_t size; size = backtrace (array, MAX_DEPTH); backtrace_symbols_fd (array, size, 2); +#else + g_on_error_stack_trace (g_get_prgname ()); +#endif /* HAVE_EXECINFO_H */ } else if (strcmp (ephy_debug_break, "trap") == 0) { -- cgit v1.2.3