summaryrefslogtreecommitdiff
path: root/source/tools/mudraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/mudraw.c')
-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) */