Use Sleep() instead of usleep() on Windows

This commit is contained in:
Patrick Gansterer 2014-03-29 07:52:01 +01:00
parent fc5734c339
commit 60cbbac880
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -15,7 +15,6 @@
#define SOL_TCP IPPROTO_TCP
#define random rand
#define usleep _sleep
#ifdef __MINGW64__
#define DEF_POLL_STUFF