index 7ed95d480f26395422692af47851bd91e0182c70..352e043d0aa76a5e3a104ad91b88dfd5b07f5281 100644 (file)
--- a/program/src/rrd_update.c
+++ b/program/src/rrd_update.c
*/
#include <sys/timeb.h>
-#ifndef __MINGW32__
+#if (defined(__MINGW32__) && \
+ ((__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 12) || __MINGW32_MAJOR_VERSION > 3))
+#include <sys/time.h>
+#else
+
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
-#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 */