summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-21 14:29:45 +0000
committerTor Andersson <tor@ghostscript.com>2010-07-21 14:29:45 +0000
commitf80091ed41a318c328b76cc307ec715807173085 (patch)
tree44bbc5f616449f4cde0e63d5d1a93da2d72db8cc /fitz
parentff2bd7646725c2db1ef1f700b8b92e7820467e0d (diff)
downloadmupdf-f80091ed41a318c328b76cc307ec715807173085.tar.xz
Fixes to compile with MSYS.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/base_time.c2
-rw-r--r--fitz/fitz.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/fitz/base_time.c b/fitz/base_time.c
index 425c6440..a369099c 100644
--- a/fitz/base_time.c
+++ b/fitz/base_time.c
@@ -10,6 +10,8 @@
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
+struct timeval;
+
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
FILETIME ft;
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 3a6087e6..fb3de145 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -42,7 +42,9 @@ int gettimeofday(struct timeval *tv, struct timezone *tz);
#include <unistd.h>
+#ifndef O_BINARY
#define O_BINARY 0
+#endif
#endif