summaryrefslogtreecommitdiff
path: root/lib/select.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-01-05 15:56:28 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-01-05 15:56:28 +0000
commitb7aaa4d9071227d481eb163887d7dd21535b7ae3 (patch)
treef7ff643413409dcd731f4256df75718cc4a21a87 /lib/select.c
parente61e09f658499d9177fffaf3174763fa37c2744e (diff)
downloadcurl-b7aaa4d9071227d481eb163887d7dd21535b7ae3.tar.gz
Include <dos.h> for delay() on MSDOS.
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c8
1 files 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 <socket.h>
#endif
+#ifdef __MSDOS__
+#include <dos.h> /* delay() */
+#endif
+
#include <curl/curl.h>
#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