diff --git a/src/c/time.d b/src/c/time.d index c17a5c029..bb40fd787 100644 --- a/src/c/time.d +++ b/src/c/time.d @@ -22,6 +22,12 @@ #endif #include +#ifdef mignw32 +/* The function sleep() in MinGW is bogus: it counts millisecons! */ +#include +#define sleep(x) Sleep(x*1000) +#endif + #ifndef HZ /* usually from */ #define HZ 60 #endif