mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:11:45 +03:00
examples/websocket: fix to sleep more on Windows
Found by Codex Security
Follow-up to d4b8589055 #13771
Closes #20978
This commit is contained in:
parent
c5daffe5f3
commit
a3699e8b9e
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#define sleep(s) Sleep((DWORD)(s))
|
||||
#define sleep(s) Sleep((DWORD)(s * 1000))
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue