From cef5bda9fc3f3ab391501f1366bd7f2989e85723 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 22 Nov 2007 12:33:57 +0000 Subject: [PATCH] make update compile for mingw32 3.4.5 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1245 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_update.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index 9225fb08..7ed95d48 100644 --- a/program/src/rrd_update.c +++ b/program/src/rrd_update.c @@ -36,6 +36,9 @@ struct timeval { }; #endif +#if !(defined(__MINGW32__) && \ + ((__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 12) || __MINGW32_MAJOR_VERSION > 3)) + struct __timezone { int tz_minuteswest; /* minutes W of Greenwich */ int tz_dsttime; /* type of dst correction */ @@ -53,7 +56,9 @@ static int gettimeofday(struct timeval *t, struct __timezone *tz) { return 0; } +#endif /* mingw32 3.4.5 */ #endif + /* * normilize time as returned by gettimeofday. usec part must * be always >= 0 -- 2.30.2