Subversion Repositories Tewi

Rev

Rev 329 | Rev 331 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 329 Rev 330
Line 1... Line 1...
1
/* $Id: server.c 329 2024-10-14 17:57:20Z nishi $ */
1
/* $Id: server.c 330 2024-10-14 17:58:39Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 63... Line 63...
63
#include "strptime.h"
63
#include "strptime.h"
64
typedef int socklen_t;
64
typedef int socklen_t;
65
#elif defined(__NETWARE__)
65
#elif defined(__NETWARE__)
66
#include <sys/socket.h>
66
#include <sys/socket.h>
67
#include <nwthread.h>
67
#include <nwthread.h>
68
 
-
 
69
typedef int socklen_t;
-
 
70
#define IPPROTO_TCP 0
68
#define IPPROTO_TCP 0
71
#define INADDR_ANY 0
69
#define INADDR_ANY 0
72
#define htons(x) x
70
#define htons(x) x
73
#include "strptime.h"
71
#include "strptime.h"
74
#else
72
#else
Line 100... Line 98...
100
 
98
 
101
#ifdef __HAIKU__
99
#ifdef __HAIKU__
102
#include <OS.h>
100
#include <OS.h>
103
#endif
101
#endif
104
 
102
 
105
#ifdef __USLC__
103
#if defined(__USLC__) || defined(__NeXT__) || defined(__NETWARE__)
106
typedef int socklen_t;
104
typedef int socklen_t;
107
#endif
105
#endif
108
 
106
 
109
#ifndef S_ISDIR
107
#ifndef S_ISDIR
110
#define S_ISDIR(x) ((x) & _S_IFDIR)
108
#define S_ISDIR(x) ((x) & _S_IFDIR)