mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1857 from mitchellh/f-fix-mingw-time
Don't redefine timeval in MinGW environments
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user