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


Ignore:
Timestamp:
Oct 17, 2024, 9:37:10 AM (4 weeks ago)
Author:
Nishi
Message:

works on netware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r359 r361  
    6464typedef int socklen_t;
    6565#elif defined(__NETWARE__)
     66#include <sys/bsdskt.h>
    6667#include <sys/socket.h>
    6768
    6869#define IPPROTO_TCP 0
    6970#define INADDR_ANY 0
    70 #define htons(x) x
    7171#include "strptime.h"
    7272typedef int socklen_t;
     73
     74uint16_t htons(uint16_t n) { return ((n >> 8) & 0xff) | ((n << 8) & 0xff00); }
    7375#elif defined(__DOS__)
    7476#include <netinet/tcp.h>
     
    10111013        struct timeval tv;
    10121014#endif
    1013 #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
     1015#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__))
    10141016        struct thread_entry threads[2048];
    10151017        for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
     
    10841086                                        _beginthread(tw_server_pass, 0, 0, e);
    10851087#elif defined(__NETWARE__)
    1086                                         tw_server_pass(e);
     1088                                        BeginThread(tw_server_pass, NULL, 0, e);
    10871089#elif defined(__DOS__)
    10881090                                        tw_server_pass(e);
Note: See TracChangeset for help on using the changeset viewer.