Sleep is bogus under windows and counts the time in milliseconds.

This commit is contained in:
jjgarcia 2003-12-02 10:47:02 +00:00
parent babd85558b
commit 7dd5586d9e

View file

@ -22,6 +22,12 @@
#endif
#include <unistd.h>
#ifdef mignw32
/* The function sleep() in MinGW is bogus: it counts millisecons! */
#include <winbase.h>
#define sleep(x) Sleep(x*1000)
#endif
#ifndef HZ /* usually from <sys/param.h> */
#define HZ 60
#endif