shithub: jbig2

Download patch

ref: 55eefa29f93e789cf7e0c2be353dc14029a2f5a6
parent: 95609cbc7a973bb5a781d76b00f3649d038be7bd
author: Sebastian Rasmussen <[email protected]>
date: Sun Sep 29 12:55:51 EDT 2019

jbig2dec: Fix compilation issues with memento build.

--- a/memento.c
+++ b/memento.c
@@ -50,6 +50,7 @@
 
 #include <stdlib.h>
 #include <stdarg.h>
+#include <string.h>
 
 #ifdef __ANDROID__
 #define MEMENTO_ANDROID
@@ -456,6 +457,7 @@
 extern char **backtrace_symbols(void **, size_t);
 
 #define MEMENTO_BACKTRACE_MAX 256
+static void (*print_stack_value)(void *address);
 
 /* Libbacktrace gubbins - relies on us having libdl to load the .so */
 #ifdef HAVE_LIBDL
@@ -493,7 +495,6 @@
 static backtrace_pcinfo_type backtrace_pcinfo;
 static struct backtrace_state *my_backtrace_state;
 static void *libbt;
-static void (*print_stack_value)(void *address);
 static char backtrace_exe[4096];
 static void *current_addr;