From: Gisle Vanem Date: Fri, 5 Jan 2007 15:56:28 +0000 (+0000) Subject: Include for delay() on MSDOS. X-Git-Tag: curl-7_16_1~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7aaa4d9071227d481eb163887d7dd21535b7ae3;p=thirdparty%2Fcurl.git Include for delay() on MSDOS. --- diff --git a/lib/select.c b/lib/select.c index 33a005e70a..04a6fda118 100644 --- a/lib/select.c +++ b/lib/select.c @@ -44,6 +44,10 @@ #include #endif +#ifdef __MSDOS__ +#include /* delay() */ +#endif + #include #include "urldata.h" @@ -111,7 +115,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms) if (pfd[num].revents & (POLLIN|POLLHUP)) ret |= CSELECT_IN; if (pfd[num].revents & POLLERR) { -#ifdef __CYGWIN__ +#ifdef __CYGWIN__ /* Cygwin 1.5.21 needs this hack to pass test 160 */ if (errno == EINPROGRESS) ret |= CSELECT_IN; @@ -149,7 +153,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms) #ifdef WIN32 Sleep(timeout_ms); #elif defined(__MSDOS__) - delay(ms); + delay(timeout_ms); #else select(0, NULL, NULL, NULL, &timeout); #endif