aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-03 15:35:19 +0000
committerYang Tse <yangsita@gmail.com>2007-04-03 15:35:19 +0000
commitf1b4f5e2ae0150d9ec0a666f4bbde8988bac9e29 (patch)
tree76cb80b9b986fe7e3b61ab353b3ba16e82b2c300
parentbcf0af9ddb9dd0225017805d18a0b0b4a5236f7a (diff)
fix MSDOS symbol check
-rw-r--r--lib/select.c6
-rw-r--r--src/main.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/select.c b/lib/select.c
index 83484eeeb..ddc40593e 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -41,7 +41,7 @@
#include <socket.h>
#endif
-#ifdef __MSDOS__
+#ifdef MSDOS
#include <dos.h> /* delay() */
#endif
@@ -116,7 +116,7 @@
*/
static int wait_ms(int timeout_ms)
{
-#if !defined(__MSDOS__) && !defined(USE_WINSOCK)
+#if !defined(MSDOS) && !defined(USE_WINSOCK)
#ifndef HAVE_POLL_FINE
struct timeval pending_tv;
#endif
@@ -132,7 +132,7 @@ static int wait_ms(int timeout_ms)
SET_SOCKERRNO(EINVAL);
return -1;
}
-#if defined(__MSDOS__)
+#if defined(MSDOS)
delay(timeout_ms);
#elif defined(USE_WINSOCK)
Sleep(timeout_ms);
diff --git a/src/main.c b/src/main.c
index 1d9a8dc01..f9a13e0af 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2794,7 +2794,7 @@ static void go_sleep(long ms)
#ifdef WIN32
/* Windows offers a millisecond sleep */
Sleep(ms);
-#elif defined(__MSDOS__)
+#elif defined(MSDOS)
delay(ms);
#else
/* Other systems must use select() for this */