From 21368c7c8fb06b2603f35476c3302d8f721e8558 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 3 Nov 2016 20:17:43 +0000 Subject: Avoid warning in memento builds. --- source/fitz/memento.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/fitz/memento.c') diff --git a/source/fitz/memento.c b/source/fitz/memento.c index 3108e7fe..3e405850 100644 --- a/source/fitz/memento.c +++ b/source/fitz/memento.c @@ -42,6 +42,7 @@ int atexit(void (*)(void)); #include "mupdf/memento.h" #include #include +#include #endif #ifndef _MSC_VER #include @@ -1544,7 +1545,7 @@ void Memento_info(void *addr) /* stashed_map[j] = i means that file descriptor i-1 was duplicated to j */ int stashed_map[OPEN_MAX]; -static void Memento_signal(void) +static void Memento_signal(int signal) { fprintf(stderr, "SEGV after Memory squeezing @ %d\n", memento.squeezeAt); @@ -1633,7 +1634,7 @@ static int squeeze(void) #else #include -static void Memento_signal(void) +static void Memento_signal(int signum) { memento.segv = 1; /* If we just return from this function the SEGV will be unhandled, and -- cgit v1.2.3