fix MSDOS symbol check
authorYang Tse <yangsita@gmail.com>
Tue, 3 Apr 2007 15:35:19 +0000 (15:35 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 3 Apr 2007 15:35:19 +0000 (15:35 +0000)
lib/select.c
src/main.c

index 83484ee..ddc4059 100644 (file)
@@ -41,7 +41,7 @@
 #include <socket.h>
 #endif
 
-#ifdef __MSDOS__
+#ifdef MSDOS
 #include <dos.h>  /* delay() */
 #endif
 
  */
 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);
index 1d9a8dc..f9a13e0 100644 (file)
@@ -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 */