mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
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
|
* for tests with chrome on same machine as client and
|
||||||
* server, this is needed to stop chrome choking
|
* server, this is needed to stop chrome choking
|
||||||
*/
|
*/
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(1);
|
||||||
|
#else
|
||||||
usleep(1);
|
usleep(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#define SOL_TCP IPPROTO_TCP
|
#define SOL_TCP IPPROTO_TCP
|
||||||
|
|
||||||
#define random rand
|
#define random rand
|
||||||
#define usleep _sleep
|
|
||||||
|
|
||||||
#ifdef __MINGW64__
|
#ifdef __MINGW64__
|
||||||
#define DEF_POLL_STUFF
|
#define DEF_POLL_STUFF
|
||||||
|
|
Loading…
Add table
Reference in a new issue