From 30d47296e006add5424e31f97142b7f6b9c539e0 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 3 May 2017 13:50:03 +0100 Subject: Fix windows builds: windows doesn't have sys/time.h A nicer fix wouldn't require this #ifdeffery everywhere. Maybe later. --- source/tools/mudraw.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/tools/mudraw.c') 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 #include #include -#include /* for gettimeofday */ +#ifdef _MSC_VER +struct timeval; +struct timezone; +int gettimeofday(struct timeval *tv, struct timezone *tz); +#else +#include +#endif /* Enable for helpful threading debug */ /* #define DEBUG_THREADS(A) do { printf A; fflush(stdout); } while (0) */ -- cgit v1.2.3