Changeset 359 in Main for trunk/Server/server.c


Ignore:
Timestamp:
Oct 16, 2024, 11:34:51 PM (4 weeks ago)
Author:
Nishi
Message:

add dos supportr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r349 r359  
    4848#endif
    4949
    50 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__))
     50#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__))
    5151#ifndef NO_GETNAMEINFO
    5252#include <ws2tcpip.h>
     
    7171#include "strptime.h"
    7272typedef int socklen_t;
     73#elif defined(__DOS__)
     74#include <netinet/tcp.h>
     75#include <netinet/in.h>
     76#include <arpa/inet.h>
     77#include <sys/select.h>
     78
     79#include "strptime.h"
    7380#else
    7481#ifdef USE_POLL
     
    167174int tw_server_init(void) {
    168175        int i;
    169 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__))
     176#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__))
    170177        WSADATA wsa;
    171178#ifdef USE_WINSOCK1
     
    965972#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
    966973#ifdef __NETWARE__
     974#elif defined(__DOS__)
    967975#else
    968976        _endthread();
     
    987995#elif defined(__NETWARE__)
    988996        int thread;
     997#elif defined(__DOS__)
    989998#else
    990999        HANDLE handle;
     
    10751084                                        _beginthread(tw_server_pass, 0, 0, e);
    10761085#elif defined(__NETWARE__)
     1086                                        tw_server_pass(e);
     1087#elif defined(__DOS__)
    10771088                                        tw_server_pass(e);
    10781089#else
Note: See TracChangeset for help on using the changeset viewer.