Commit e893349e authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

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

Don't redefine timeval in MinGW environments
parents 94df66fb 3843a286
...@@ -53,10 +53,14 @@ ...@@ -53,10 +53,14 @@
# endif # endif
typedef long suseconds_t; typedef long suseconds_t;
# ifndef __MINGW64__
struct timeval { struct timeval {
time_t tv_sec; time_t tv_sec;
suseconds_t tv_usec; suseconds_t tv_usec;
}; };
# endif
static int static int
gettimeofday(struct timeval *tv, void *tz) gettimeofday(struct timeval *tv, void *tz)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment