summaryrefslogtreecommitdiff
path: root/source/fitz/memento.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-15 16:10:40 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-15 17:03:58 +0000
commite7760b5897c55b1c533515495f091c70f8dc4c5b (patch)
tree7ed17b9e3f4918b25932758d6412db20e1a019f2 /source/fitz/memento.c
parentf0aad104bdaad166c3779cba20f54e7e008dfed3 (diff)
downloadmupdf-e7760b5897c55b1c533515495f091c70f8dc4c5b.tar.xz
Memento: Avoid warnings building without HAVE_LIBDL
Diffstat (limited to 'source/fitz/memento.c')
-rw-r--r--source/fitz/memento.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/fitz/memento.c b/source/fitz/memento.c
index 27122488..83522873 100644
--- a/source/fitz/memento.c
+++ b/source/fitz/memento.c
@@ -327,10 +327,9 @@ extern char **backtrace_symbols(void **, size_t);
#define MEMENTO_BACKTRACE_MAX 256
-/* Libbacktrace gubbins */
+/* Libbacktrace gubbins - relies on us having libdl to load the .so */
#ifdef HAVE_LIBDL
#include <dlfcn.h>
-#endif
typedef void (*backtrace_error_callback) (void *data, const char *msg, int errnum);
@@ -368,7 +367,6 @@ static void (*print_stack_value)(void *address);
static char backtrace_exe[4096];
static void *current_addr;
-#ifdef HAVE_LIBDL
static void error2_cb(void *data, const char *msg, int errnum)
{
}