Provide usleep() for Windows.
This commit is contained in:
parent
930bf74fbe
commit
e2e6ec8050
2 changed files with 11 additions and 0 deletions
|
|
@ -163,3 +163,10 @@ int gettimeofday(struct timeval *tv, void *tz) {
|
|||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MINGW
|
||||
int usleep(long usec) {
|
||||
Sleep(usec / 1000);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue