From b7aaa4d9071227d481eb163887d7dd21535b7ae3 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Fri, 5 Jan 2007 15:56:28 +0000 Subject: Include for delay() on MSDOS. --- lib/select.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/select.c b/lib/select.c index 33a005e70..04a6fda11 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 -- cgit v1.2.3