diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-07 11:02:45 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-07 11:02:45 +0900 |
| commit | c7ef2205e1210ed26f7dba1cddd11fa411c367b1 (patch) | |
| tree | d7de11c888cb31546512ee079a1d0d01dda20fd6 | |
| parent | ad2e6d0c7ad3ba1a865a40f84083182de6370f40 (diff) | |
| parent | 0b5fe0ad6f0aa90316eecf5ca592ce6fbc384c9a (diff) | |
| download | mruby-c7ef2205e1210ed26f7dba1cddd11fa411c367b1.tar.gz mruby-c7ef2205e1210ed26f7dba1cddd11fa411c367b1.zip | |
Merge pull request #2206 from mattn/fix_build_mingw
Fix build on mingw32/64: struct timeval isn't defined in default. See: 6...
| -rw-r--r-- | mrbgems/mruby-time/src/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 0427fe3c0..b1abf21e6 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/mrbgems/mruby-time/src/time.c @@ -10,6 +10,10 @@ #include "mruby/class.h" #include "mruby/data.h" +#if defined(__MINGW64__) || defined(__MINGW32__) +# include <sys/time.h> +#endif + /** Time class configuration */ /* gettimeofday(2) */ |
