Use Sleep() instead of usleep() on Windows
This commit is contained in:
parent
fc5734c339
commit
60cbbac880
2 changed files with 4 additions and 1 deletions
|
@ -636,7 +636,11 @@ callback_lws_mirror(struct libwebsocket_context *context,
|
|||
* for tests with chrome on same machine as client and
|
||||
* server, this is needed to stop chrome choking
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
Sleep(1);
|
||||
#else
|
||||
usleep(1);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#define SOL_TCP IPPROTO_TCP
|
||||
|
||||
#define random rand
|
||||
#define usleep _sleep
|
||||
|
||||
#ifdef __MINGW64__
|
||||
#define DEF_POLL_STUFF
|
||||
|
|
Loading…
Add table
Reference in a new issue