blob: ff1ea15581d21a14e202bd914229f44e194935f7 [file] [log] [blame]
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07001#ifndef HEADER_CURL_CONFIG_DOS_H
2#define HEADER_CURL_CONFIG_DOS_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
Alex Deymo486467e2017-12-19 19:04:07 +010010 * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070011 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
Alex Deymo8f1a2142016-06-28 14:49:26 -070014 * are also available at https://curl.haxx.se/docs/copyright.html.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070015 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ***************************************************************************/
Lucas Eckels9bd90e62012-08-06 15:07:02 -070024
25
26/* ================================================================ */
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070027/* lib/config-dos.h - Hand crafted config file for DOS */
Lucas Eckels9bd90e62012-08-06 15:07:02 -070028/* ================================================================ */
29
30#if defined(DJGPP)
31 #define OS "MSDOS/djgpp"
32#elif defined(__HIGHC__)
33 #define OS "MSDOS/HighC"
34#elif defined(__WATCOMC__)
35 #define OS "MSDOS/Watcom"
36#else
37 #define OS "MSDOS/?"
38#endif
39
40#define PACKAGE "curl"
41
42#define HAVE_ARPA_INET_H 1
Alex Deymo486467e2017-12-19 19:04:07 +010043#define HAVE_ASSERT_H 1
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070044#define HAVE_ERRNO_H 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -070045#define HAVE_FCNTL_H 1
Alex Deymo486467e2017-12-19 19:04:07 +010046#define HAVE_FREEADDRINFO 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -070047#define HAVE_GETADDRINFO 1
48#define HAVE_GETNAMEINFO 1
49#define HAVE_GETPROTOBYNAME 1
50#define HAVE_GETTIMEOFDAY 1
51#define HAVE_IO_H 1
52#define HAVE_IOCTL 1
53#define HAVE_IOCTL_FIONBIO 1
54#define HAVE_IOCTLSOCKET 1
55#define HAVE_IOCTLSOCKET_FIONBIO 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -070056#define HAVE_LOCALE_H 1
57#define HAVE_LONGLONG 1
58#define HAVE_MEMORY_H 1
59#define HAVE_NETDB_H 1
60#define HAVE_NETINET_IN_H 1
61#define HAVE_NETINET_TCP_H 1
62#define HAVE_NET_IF_H 1
63#define HAVE_PROCESS_H 1
64#define HAVE_RECV 1
65#define HAVE_RECVFROM 1
66#define HAVE_SELECT 1
67#define HAVE_SEND 1
68#define HAVE_SETJMP_H 1
69#define HAVE_SETLOCALE 1
70#define HAVE_SETMODE 1
71#define HAVE_SIGNAL 1
72#define HAVE_SOCKET 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -070073#define HAVE_STRDUP 1
74#define HAVE_STRICMP 1
75#define HAVE_STRTOLL 1
76#define HAVE_STRUCT_TIMEVAL 1
77#define HAVE_STRUCT_IN6_ADDR 1
78#define HAVE_SYS_IOCTL_H 1
79#define HAVE_SYS_SOCKET_H 1
80#define HAVE_SYS_STAT_H 1
81#define HAVE_SYS_TYPES_H 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -070082#define HAVE_TIME_H 1
83#define HAVE_UNISTD_H 1
84
85#define NEED_MALLOC_H 1
86
87#define RETSIGTYPE void
88#define SIZEOF_INT 4
Alex Deymo486467e2017-12-19 19:04:07 +010089#define SIZEOF_LONG 4
Lucas Eckels9bd90e62012-08-06 15:07:02 -070090#define SIZEOF_LONG_DOUBLE 16
91#define SIZEOF_SHORT 2
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070092#define SIZEOF_SIZE_T 4
Alex Deymo486467e2017-12-19 19:04:07 +010093#define SIZEOF_CURL_OFF_T 4
Lucas Eckels9bd90e62012-08-06 15:07:02 -070094#define STDC_HEADERS 1
95#define TIME_WITH_SYS_TIME 1
96
97/* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */
98
99#define SEND_TYPE_ARG1 int
100#define SEND_QUAL_ARG2 const
101#define SEND_TYPE_ARG2 void *
102#define SEND_TYPE_ARG3 int
103#define SEND_TYPE_ARG4 int
104#define SEND_TYPE_RETV int
105
106#define RECV_TYPE_ARG1 int
107#define RECV_TYPE_ARG2 void *
108#define RECV_TYPE_ARG3 int
109#define RECV_TYPE_ARG4 int
110#define RECV_TYPE_RETV int
111
112#define RECVFROM_TYPE_ARG1 int
113#define RECVFROM_TYPE_ARG2 void
114#define RECVFROM_TYPE_ARG3 int
115#define RECVFROM_TYPE_ARG4 int
116#define RECVFROM_TYPE_ARG5 struct sockaddr
117#define RECVFROM_TYPE_ARG6 int
118#define RECVFROM_TYPE_RETV int
119#define RECVFROM_TYPE_ARG2_IS_VOID 1
120
121#define GETNAMEINFO_QUAL_ARG1 const
122#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
123#define GETNAMEINFO_TYPE_ARG2 int
124#define GETNAMEINFO_TYPE_ARG46 int
125#define GETNAMEINFO_TYPE_ARG7 int
126
127#define BSD
128
129/* CURLDEBUG definition enables memory tracking */
130/* #define CURLDEBUG */
131
132/* USE_ZLIB on cmd-line */
133#ifdef USE_ZLIB
134 #define HAVE_ZLIB_H 1
135 #define HAVE_LIBZ 1
136#endif
137
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700138/* USE_OPENSSL on cmd-line */
139#ifdef USE_OPENSSL
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700140 #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
141 #define HAVE_OPENSSL_ENGINE_H 1
142 #define OPENSSL_NO_KRB5 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700143#endif
144
145/* to disable LDAP */
146#define CURL_DISABLE_LDAP 1
147
148#define in_addr_t u_long
149
150#if defined(__HIGHC__) || \
151 (defined(__GNUC__) && (__GNUC__ < 4))
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700152 #define ssize_t int
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700153#endif
154
155#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
156
157/* Target HAVE_x section */
158
159#if defined(DJGPP)
160 #define HAVE_BASENAME 1
161 #define HAVE_STRCASECMP 1
162 #define HAVE_SIGACTION 1
163 #define HAVE_SIGSETJMP 1
164 #define HAVE_SYS_TIME_H 1
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700165 #define HAVE_TERMIOS_H 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700166 #define HAVE_VARIADIC_MACROS_GCC 1
167
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700168#elif defined(__WATCOMC__)
169 #define HAVE_STRCASECMP 1
170
171#elif defined(__HIGHC__)
172 #define HAVE_SYS_TIME_H 1
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700173 #define strerror(e) strerror_s_((e))
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700174#endif
175
176#ifdef MSDOS /* Watt-32 */
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700177 #define HAVE_CLOSE_S 1
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700178#endif
179
180#undef word
181#undef byte
182
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700183#endif /* HEADER_CURL_CONFIG_DOS_H */
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700184