23
23
***************************************************************************/
25
25
/* ================================================================ */
26
/* lib/config-win32.h - Hand crafted config file for Windows */
26
/* Hand crafted config file for Windows */
27
27
/* ================================================================ */
29
29
/* ---------------------------------------------------------------- */
31
31
/* ---------------------------------------------------------------- */
33
/* Define if you have the <arpa/inet.h> header file. */
33
/* Define if you have the <arpa/inet.h> header file. */
34
34
/* #define HAVE_ARPA_INET_H 1 */
36
/* Define if you have the <assert.h> header file. */
36
/* Define if you have the <assert.h> header file. */
37
37
#define HAVE_ASSERT_H 1
39
/* Define if you have the <crypto.h> header file. */
39
/* Define if you have the <crypto.h> header file. */
40
40
/* #define HAVE_CRYPTO_H 1 */
42
/* Define if you have the <err.h> header file. */
42
/* Define if you have the <errno.h> header file. */
43
#define HAVE_ERRNO_H 1
45
/* Define if you have the <err.h> header file. */
43
46
/* #define HAVE_ERR_H 1 */
45
/* Define if you have the <fcntl.h> header file. */
48
/* Define if you have the <fcntl.h> header file. */
46
49
#define HAVE_FCNTL_H 1
48
/* Define if you have the <getopt.h> header file. */
49
/* #define HAVE_GETOPT_H 1 */
51
/* Define if you have the <getopt.h> header file. */
52
#if defined(__MINGW32__) || defined(__POCC__)
53
#define HAVE_GETOPT_H 1
51
/* Define if you have the <io.h> header file. */
56
/* Define if you have the <io.h> header file. */
52
57
#define HAVE_IO_H 1
54
/* Define if you have the <limits.h> header file. */
59
/* Define if you have the <limits.h> header file. */
55
60
#define HAVE_LIMITS_H 1
57
/* Define if you need the malloc.h header file even with stdlib.h */
62
/* Define if you have the <locale.h> header file. */
63
#define HAVE_LOCALE_H 1
65
/* Define if you need <malloc.h> header even with <stdlib.h> header file. */
58
66
#if !defined(__SALFORDC__) && !defined(__POCC__)
59
67
#define NEED_MALLOC_H 1
62
/* Define if you have the <netdb.h> header file. */
70
/* Define if you have the <netdb.h> header file. */
63
71
/* #define HAVE_NETDB_H 1 */
65
/* Define if you have the <netinet/in.h> header file. */
73
/* Define if you have the <netinet/in.h> header file. */
66
74
/* #define HAVE_NETINET_IN_H 1 */
68
/* Define if you have the <process.h> header file. */
76
/* Define if you have the <process.h> header file. */
69
77
#ifndef __SALFORDC__
70
78
#define HAVE_PROCESS_H 1
73
81
/* Define if you have the <signal.h> header file. */
74
82
#define HAVE_SIGNAL_H 1
76
/* Define if you have the <sgtty.h> header file. */
84
/* Define if you have the <sgtty.h> header file. */
77
85
/* #define HAVE_SGTTY_H 1 */
79
/* Define if you have the <ssl.h> header file. */
87
/* Define if you have the <ssl.h> header file. */
80
88
/* #define HAVE_SSL_H 1 */
82
/* Define if you have the <stdlib.h> header file. */
90
/* Define if you have the <stdlib.h> header file. */
83
91
#define HAVE_STDLIB_H 1
85
/* Define if you have the <sys/param.h> header file. */
93
/* Define if you have the <sys/param.h> header file. */
86
94
/* #define HAVE_SYS_PARAM_H 1 */
88
/* Define if you have the <sys/select.h> header file. */
96
/* Define if you have the <sys/select.h> header file. */
89
97
/* #define HAVE_SYS_SELECT_H 1 */
91
/* Define if you have the <sys/socket.h> header file. */
99
/* Define if you have the <sys/socket.h> header file. */
92
100
/* #define HAVE_SYS_SOCKET_H 1 */
94
/* Define if you have the <sys/sockio.h> header file. */
102
/* Define if you have the <sys/sockio.h> header file. */
95
103
/* #define HAVE_SYS_SOCKIO_H 1 */
97
/* Define if you have the <sys/stat.h> header file. */
105
/* Define if you have the <sys/stat.h> header file. */
98
106
#define HAVE_SYS_STAT_H 1
100
/* Define if you have the <sys/time.h> header file */
108
/* Define if you have the <sys/time.h> header file. */
101
109
/* #define HAVE_SYS_TIME_H 1 */
103
/* Define if you have the <sys/types.h> header file. */
111
/* Define if you have the <sys/types.h> header file. */
104
112
#define HAVE_SYS_TYPES_H 1
106
/* Define if you have the <sys/utime.h> header file. */
114
/* Define if you have the <sys/utime.h> header file. */
107
115
#ifndef __BORLANDC__
108
116
#define HAVE_SYS_UTIME_H 1
111
/* Define if you have the <termio.h> header file. */
119
/* Define if you have the <termio.h> header file. */
112
120
/* #define HAVE_TERMIO_H 1 */
114
/* Define if you have the <termios.h> header file. */
122
/* Define if you have the <termios.h> header file. */
115
123
/* #define HAVE_TERMIOS_H 1 */
117
/* Define if you have the <time.h> header file. */
125
/* Define if you have the <time.h> header file. */
118
126
#define HAVE_TIME_H 1
120
/* Define if you have the <unistd.h> header file. */
128
/* Define if you have the <unistd.h> header file. */
121
129
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
122
130
defined(__POCC__)
123
131
#define HAVE_UNISTD_H 1
126
/* Define if you have the <windows.h> header file. */
134
/* Define if you have the <windows.h> header file. */
127
135
#define HAVE_WINDOWS_H 1
129
/* Define if you have the <winsock.h> header file. */
137
/* Define if you have the <winsock.h> header file. */
130
138
#define HAVE_WINSOCK_H 1
132
/* Define if you have the <winsock2.h> header file. */
140
/* Define if you have the <winsock2.h> header file. */
133
141
#ifndef __SALFORDC__
134
142
#define HAVE_WINSOCK2_H 1
137
/* Define if you have the <ws2tcpip.h> header file. */
145
/* Define if you have the <ws2tcpip.h> header file. */
138
146
#ifndef __SALFORDC__
139
147
#define HAVE_WS2TCPIP_H 1
146
154
/* Define if sig_atomic_t is an available typedef. */
147
155
#define HAVE_SIG_ATOMIC_T 1
149
/* Define if you have the ANSI C header files. */
157
/* Define if you have the ANSI C header files. */
150
158
#define STDC_HEADERS 1
152
/* Define if you can safely include both <sys/time.h> and <time.h>. */
160
/* Define if you can safely include both <sys/time.h> and <time.h>. */
153
161
/* #define TIME_WITH_SYS_TIME 1 */
155
163
/* ---------------------------------------------------------------- */
157
165
/* ---------------------------------------------------------------- */
159
/* Define if you have the closesocket function. */
167
/* Define if you have the closesocket function. */
160
168
#define HAVE_CLOSESOCKET 1
162
/* Define if you don't have vprintf but do have _doprnt. */
170
/* Define if you don't have vprintf but do have _doprnt. */
163
171
/* #define HAVE_DOPRNT 1 */
165
/* Define if you have the gethostbyaddr function. */
173
/* Define if you have the ftruncate function. */
174
#define HAVE_FTRUNCATE 1
176
/* Define if you have the gethostbyaddr function. */
166
177
#define HAVE_GETHOSTBYADDR 1
168
/* Define if you have the gethostname function. */
179
/* Define if you have the gethostname function. */
169
180
#define HAVE_GETHOSTNAME 1
171
/* Define if you have the getpass function. */
182
/* Define if you have the getpass function. */
172
183
/* #define HAVE_GETPASS 1 */
174
/* Define if you have the getservbyname function. */
185
/* Define if you have the getservbyname function. */
175
186
#define HAVE_GETSERVBYNAME 1
177
/* Define if you have the getprotobyname function. */
188
/* Define if you have the getprotobyname function. */
178
189
#define HAVE_GETPROTOBYNAME
180
/* Define if you have the gettimeofday function. */
191
/* Define if you have the gettimeofday function. */
181
192
/* #define HAVE_GETTIMEOFDAY 1 */
183
/* Define if you have the inet_addr function. */
194
/* Define if you have the inet_addr function. */
184
195
#define HAVE_INET_ADDR 1
186
197
/* Define if you have the ioctlsocket function. */
189
200
/* Define if you have a working ioctlsocket FIONBIO function. */
190
201
#define HAVE_IOCTLSOCKET_FIONBIO 1
192
/* Define if you have the perror function. */
203
/* Define if you have the perror function. */
193
204
#define HAVE_PERROR 1
195
/* Define if you have the RAND_screen function when using SSL */
206
/* Define if you have the RAND_screen function when using SSL. */
196
207
#define HAVE_RAND_SCREEN 1
198
209
/* Define if you have the `RAND_status' function when using SSL. */
199
210
#define HAVE_RAND_STATUS 1
201
/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function.
212
/* Define if you have the `CRYPTO_cleanup_all_ex_data' function.
202
213
This is present in OpenSSL versions after 0.9.6b */
203
214
#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
205
/* Define if you have the select function. */
216
/* Define if you have the select function. */
206
217
#define HAVE_SELECT 1
208
/* Define if you have the setvbuf function. */
219
/* Define if you have the setlocale function. */
220
#define HAVE_SETLOCALE 1
222
/* Define if you have the setmode function. */
223
#define HAVE_SETMODE 1
225
/* Define if you have the setvbuf function. */
209
226
#define HAVE_SETVBUF 1
211
/* Define if you have the socket function. */
228
/* Define if you have the socket function. */
212
229
#define HAVE_SOCKET 1
214
/* Define if you have the strcasecmp function. */
231
/* Define if you have the strcasecmp function. */
215
232
/* #define HAVE_STRCASECMP 1 */
217
/* Define if you have the strdup function. */
234
/* Define if you have the strdup function. */
218
235
#define HAVE_STRDUP 1
220
/* Define if you have the strftime function. */
237
/* Define if you have the strftime function. */
221
238
#define HAVE_STRFTIME 1
223
240
/* Define if you have the stricmp function. */
229
246
/* Define if you have the strnicmp function. */
230
247
#define HAVE_STRNICMP 1
232
/* Define if you have the strstr function. */
249
/* Define if you have the strstr function. */
233
250
#define HAVE_STRSTR 1
235
/* Define if you have the strtoll function. */
252
/* Define if you have the strtoll function. */
236
253
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
237
254
#define HAVE_STRTOLL 1
240
/* Define if you have the tcgetattr function. */
257
/* Define if you have the tcgetattr function. */
241
258
/* #define HAVE_TCGETATTR 1 */
243
/* Define if you have the tcsetattr function. */
260
/* Define if you have the tcsetattr function. */
244
261
/* #define HAVE_TCSETATTR 1 */
246
/* Define if you have the utime function */
263
/* Define if you have the utime function. */
247
264
#ifndef __BORLANDC__
248
265
#define HAVE_UTIME 1
330
347
/* TYPEDEF REPLACEMENTS */
331
348
/* ---------------------------------------------------------------- */
333
/* Define this if in_addr_t is not an available 'typedefed' type */
350
/* Define if in_addr_t is not an available 'typedefed' type. */
334
351
#define in_addr_t unsigned long
336
/* Define as the return type of signal handlers (int or void). */
353
/* Define to the return type of signal handlers (int or void). */
337
354
#define RETSIGTYPE void
339
/* Define ssize_t if it is not an available 'typedefed' type */
356
/* Define if ssize_t is not an available 'typedefed' type. */
340
357
#ifndef _SSIZE_T_DEFINED
341
358
# if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
342
359
defined(__POCC__) || \
355
372
/* ---------------------------------------------------------------- */
357
/* The size of `int', as computed by sizeof. */
374
/* Define to the size of `int', as computed by sizeof. */
358
375
#define SIZEOF_INT 4
360
/* The size of `long double', as computed by sizeof. */
377
/* Define to the size of `long double', as computed by sizeof. */
361
378
#define SIZEOF_LONG_DOUBLE 16
363
/* The size of `long long', as computed by sizeof. */
380
/* Define to the size of `long long', as computed by sizeof. */
364
381
/* #define SIZEOF_LONG_LONG 8 */
366
/* The size of `short', as computed by sizeof. */
383
/* Define to the size of `short', as computed by sizeof. */
367
384
#define SIZEOF_SHORT 2
369
/* The size of `size_t', as computed by sizeof. */
386
/* Define to the size of `size_t', as computed by sizeof. */
370
387
#if defined(_WIN64)
371
388
# define SIZEOF_SIZE_T 8
377
394
/* STRUCT RELATED */
378
395
/* ---------------------------------------------------------------- */
380
/* Define this if you have struct sockaddr_storage */
397
/* Define if you have struct sockaddr_storage. */
381
398
#if !defined(__SALFORDC__) && !defined(__BORLANDC__)
382
399
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
385
/* Define this if you have struct timeval */
402
/* Define if you have struct timeval. */
386
403
#define HAVE_STRUCT_TIMEVAL 1
405
/* Define if struct sockaddr_in6 has the sin6_scope_id member. */
406
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
408
/* ---------------------------------------------------------------- */
409
/* BSD-style lwIP TCP/IP stack SPECIFIC */
410
/* ---------------------------------------------------------------- */
412
/* Define to use BSD-style lwIP TCP/IP stack. */
413
/* #define USE_LWIPSOCK 1 */
417
# undef HAVE_WINSOCK_H
418
# undef HAVE_WINSOCK2_H
419
# undef HAVE_WS2TCPIP_H
421
# undef HAVE_GETHOSTNAME
422
# undef HAVE_GETNAMEINFO
423
# undef LWIP_POSIX_SOCKETS_IO_NAMES
424
# undef RECV_TYPE_ARG1
425
# undef RECV_TYPE_ARG3
426
# undef SEND_TYPE_ARG1
427
# undef SEND_TYPE_ARG3
428
# define HAVE_FREEADDRINFO
429
# define HAVE_GETADDRINFO
430
# define HAVE_GETHOSTBYNAME
431
# define HAVE_GETHOSTBYNAME_R
432
# define HAVE_GETHOSTBYNAME_R_6
433
# define LWIP_POSIX_SOCKETS_IO_NAMES 0
434
# define RECV_TYPE_ARG1 int
435
# define RECV_TYPE_ARG3 size_t
436
# define SEND_TYPE_ARG1 int
437
# define SEND_TYPE_ARG3 size_t
388
440
/* ---------------------------------------------------------------- */
389
441
/* Watt-32 tcp/ip SPECIFIC */
390
442
/* ---------------------------------------------------------------- */
429
484
#define HAVE_LONGLONG 1
432
/* Define to avoid VS2005 complaining about portable C functions */
487
/* Define to avoid VS2005 complaining about portable C functions. */
433
488
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
434
489
#define _CRT_SECURE_NO_DEPRECATE 1
435
490
#define _CRT_NONSTDC_NO_DEPRECATE 1
438
/* VS2005 and later dafault size for time_t is 64-bit, unless */
439
/* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
493
/* VS2005 and later dafault size for time_t is 64-bit, unless
494
_USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
440
495
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
441
496
# ifndef _USE_32BIT_TIME_T
442
497
# define SIZEOF_TIME_T 8
448
503
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
449
2000 as a supported build target. VS2008 default installations provide an
450
embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
451
valid build target for VS2008. Popular belief is that binaries built using
452
Windows SDK versions 6.X and Windows 2000 as a build target are functional */
504
2000 as a supported build target. VS2008 default installations provide
505
an embedded Windows SDK v6.0A along with the claim that Windows 2000 is
506
a valid build target for VS2008. Popular belief is that binaries built
507
with VS2008 using Windows SDK versions 6.X and Windows 2000 as a build
508
target are functional. */
453
509
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
454
# define VS2008_MINIMUM_TARGET 0x0500
510
# define VS2008_MIN_TARGET 0x0500
457
513
/* When no build target is specified VS2008 default build target is Windows
459
515
for VS2008 we will target the minimum Officially supported build target,
460
516
which happens to be Windows XP. */
461
517
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
462
# define VS2008_DEFAULT_TARGET 0x0501
518
# define VS2008_DEF_TARGET 0x0501
465
/* VS2008 default target settings and minimum build target check */
521
/* VS2008 default target settings and minimum build target check. */
466
522
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
467
523
# ifndef _WIN32_WINNT
468
# define _WIN32_WINNT VS2008_DEFAULT_TARGET
524
# define _WIN32_WINNT VS2008_DEF_TARGET
471
# define WINVER VS2008_DEFAULT_TARGET
527
# define WINVER VS2008_DEF_TARGET
473
# if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
529
# if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
474
530
# error VS2008 does not support Windows build targets prior to Windows 2000
549
605
/* ---------------------------------------------------------------- */
552
* Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS
608
* Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
555
/* Define USE_ARES to enable c-ares asynchronous DNS lookups */
611
/* Define to enable c-ares asynchronous DNS lookups. */
556
612
/* #define USE_ARES 1 */
558
/* Define USE_THREADS_WIN32 to enable threaded asynchronous DNS lookups */
614
/* Define to enable threaded asynchronous DNS lookups. */
559
615
#define USE_THREADS_WIN32 1
561
617
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)