mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
Include <dos.h> for delay() on MSDOS.
This commit is contained in:
parent
e61e09f658
commit
b7aaa4d907
@ -44,6 +44,10 @@
|
|||||||
#include <socket.h>
|
#include <socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __MSDOS__
|
||||||
|
#include <dos.h> /* delay() */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include "urldata.h"
|
#include "urldata.h"
|
||||||
@ -149,7 +153,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
Sleep(timeout_ms);
|
Sleep(timeout_ms);
|
||||||
#elif defined(__MSDOS__)
|
#elif defined(__MSDOS__)
|
||||||
delay(ms);
|
delay(timeout_ms);
|
||||||
#else
|
#else
|
||||||
select(0, NULL, NULL, NULL, &timeout);
|
select(0, NULL, NULL, NULL, &timeout);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user