fix MSDOS symbol check
This commit is contained in:
parent
bcf0af9ddb
commit
f1b4f5e2ae
@ -41,7 +41,7 @@
|
|||||||
#include <socket.h>
|
#include <socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __MSDOS__
|
#ifdef MSDOS
|
||||||
#include <dos.h> /* delay() */
|
#include <dos.h> /* delay() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -116,7 +116,7 @@
|
|||||||
*/
|
*/
|
||||||
static int wait_ms(int timeout_ms)
|
static int wait_ms(int timeout_ms)
|
||||||
{
|
{
|
||||||
#if !defined(__MSDOS__) && !defined(USE_WINSOCK)
|
#if !defined(MSDOS) && !defined(USE_WINSOCK)
|
||||||
#ifndef HAVE_POLL_FINE
|
#ifndef HAVE_POLL_FINE
|
||||||
struct timeval pending_tv;
|
struct timeval pending_tv;
|
||||||
#endif
|
#endif
|
||||||
@ -132,7 +132,7 @@ static int wait_ms(int timeout_ms)
|
|||||||
SET_SOCKERRNO(EINVAL);
|
SET_SOCKERRNO(EINVAL);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#if defined(__MSDOS__)
|
#if defined(MSDOS)
|
||||||
delay(timeout_ms);
|
delay(timeout_ms);
|
||||||
#elif defined(USE_WINSOCK)
|
#elif defined(USE_WINSOCK)
|
||||||
Sleep(timeout_ms);
|
Sleep(timeout_ms);
|
||||||
|
@ -2794,7 +2794,7 @@ static void go_sleep(long ms)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
/* Windows offers a millisecond sleep */
|
/* Windows offers a millisecond sleep */
|
||||||
Sleep(ms);
|
Sleep(ms);
|
||||||
#elif defined(__MSDOS__)
|
#elif defined(MSDOS)
|
||||||
delay(ms);
|
delay(ms);
|
||||||
#else
|
#else
|
||||||
/* Other systems must use select() for this */
|
/* Other systems must use select() for this */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user