Merge pull request #1857 from mitchellh/f-fix-mingw-time

Don't redefine timeval in MinGW environments
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-14 16:30:48 +09:00
+4
View File
@@ -53,10 +53,14 @@
# endif
typedef long suseconds_t;
# ifndef __MINGW64__
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};
# endif
static int
gettimeofday(struct timeval *tv, void *tz)
{