From: oetiker Date: Thu, 22 Nov 2007 12:33:57 +0000 (+0000) Subject: make update compile for mingw32 3.4.5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=569c64a62fd7e68f1d7182c7ad3c98b326ed3f34;p=rrdtool.git make update compile for mingw32 3.4.5 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1245 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_update.c b/src/rrd_update.c index 9225fb0..7ed95d4 100644 --- a/src/rrd_update.c +++ b/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