mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-01 02:00:36 -08:00
Sleep is bogus under windows and counts the time in milliseconds.
This commit is contained in:
parent
babd85558b
commit
7dd5586d9e
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue