summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-05-03 13:50:03 +0100
committerRobin Watts <robin.watts@artifex.com>2017-05-03 13:58:21 +0100
commit30d47296e006add5424e31f97142b7f6b9c539e0 (patch)
treea0b7d93362b3ac8019b444bff7565533373c9766
parent65bac925f43c72714d78d1d7843e2175373b740a (diff)
downloadmupdf-30d47296e006add5424e31f97142b7f6b9c539e0.tar.xz
Fix windows builds: windows doesn't have sys/time.h
A nicer fix wouldn't require this #ifdeffery everywhere. Maybe later.
-rw-r--r--source/tools/mudraw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index a2edd524..086220ab 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -15,7 +15,13 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#include <sys/time.h> /* for gettimeofday */
+#ifdef _MSC_VER
+struct timeval;
+struct timezone;
+int gettimeofday(struct timeval *tv, struct timezone *tz);
+#else
+#include <sys/time.h>
+#endif
/* Enable for helpful threading debug */
/* #define DEBUG_THREADS(A) do { printf A; fflush(stdout); } while (0) */