Subversion Repositories Tewi

Rev

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

Rev 312 Rev 315
Line 1... Line 1...
1
/* $Id: tw_config.h 312 2024-10-13 18:17:37Z nishi $ */
1
/* $Id: tw_config.h 315 2024-10-14 10:01:02Z nishi $ */
2
 
2
 
3
#ifndef __TW_CONFIG_H__
3
#ifndef __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
5
 
5
 
6
#ifdef __cplusplus
6
#ifdef __cplusplus
Line 12... Line 12...
12
#include "tw_http.h"
12
#include "tw_http.h"
13
 
13
 
14
#include <stdint.h>
14
#include <stdint.h>
15
#include <stdbool.h>
15
#include <stdbool.h>
16
 
16
 
17
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__))
17
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__))
18
#ifdef USE_WINSOCK1
18
#ifdef USE_WINSOCK1
19
#include <winsock.h>
19
#include <winsock.h>
20
#else
20
#else
21
#include <winsock2.h>
21
#include <winsock2.h>
22
#endif
22
#endif
23
#define NO_IPV6
23
#define NO_IPV6
24
#else
24
#else
25
#ifdef __PPU__
25
#ifdef __PPU__
26
#include <net/net.h>
26
#include <net/net.h>
27
#endif
27
#endif
28
#if !defined(__OS2__)
28
#if !defined(__OS2__) && !defined(__NETWARE__)
29
#include <netinet/in.h>
29
#include <netinet/in.h>
30
#endif
30
#endif
31
#ifdef __HAIKU__
31
#ifdef __HAIKU__
32
#define NO_IPV6
32
#define NO_IPV6
33
#endif
33
#endif
34
#endif
34
#endif
35
 
35
 
-
 
36
#ifdef __NETWARE__
-
 
37
struct in_addr {
-
 
38
	unsigned int s_addr;
-
 
39
};
-
 
40
 
-
 
41
struct sockaddr_in {
-
 
42
	unsigned short sin_family;
-
 
43
	unsigned short sin_port;
-
 
44
	struct in_addr sin_addr;
-
 
45
	char sin_zero[8];
-
 
46
};
-
 
47
#endif
-
 
48
 
36
#if defined(NO_IPV6)
49
#if defined(NO_IPV6)
37
#define SOCKADDR struct sockaddr_in
50
#define SOCKADDR struct sockaddr_in
38
#else
51
#else
39
#define SOCKADDR struct sockaddr_in6
52
#define SOCKADDR struct sockaddr_in6
40
#endif
53
#endif