summaryrefslogtreecommitdiff
path: root/source/fitz/unzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/unzip.c')
-rw-r--r--source/fitz/unzip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c
index b0907fe8..f2d4f322 100644
--- a/source/fitz/unzip.c
+++ b/source/fitz/unzip.c
@@ -1,9 +1,10 @@
+#include "mupdf/fitz.h"
#include "fitz-imp.h"
-#include <zlib.h>
-
#include <string.h>
+#include <zlib.h>
+
#if !defined (INT32_MAX)
#define INT32_MAX 2147483647L
#endif
@@ -226,7 +227,7 @@ static void ensure_zip_entries(fz_context *ctx, fz_zip_archive *zip)
size_t size, back, maxback;
size_t i, n;
- fz_seek(ctx, file, 0, SEEK_END);
+ fz_seek(ctx, file, 0, FZ_SEEK_END);
size = fz_tell(ctx, file);
maxback = fz_minz(size, 0xFFFF + sizeof buf);