1 /* Configuration header file for MS-DOS/Watt-32
2 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 This file is part of GNU Wget.
7 GNU Wget is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 GNU Wget is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Wget. If not, see <http://www.gnu.org/licenses/>.
20 Additional permission under GNU GPL version 3 section 7
22 If you modify this program, or any covered work, by linking or
23 combining it with the OpenSSL project's OpenSSL library (or a
24 modified version of that library), containing parts covered by the
25 terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
26 grants you additional permission to convey the resulting work.
27 Corresponding Source for a non-source form of such a combination
28 shall include the source code for the parts of OpenSSL used as well
29 as that of the covered work. */
41 #include <sys/config.h>
44 #include <sys/errno.h>
46 #if defined(__WATCOMC__)
47 #if (__WATCOMC__ >= 1250) /* OW 1.5+ */
50 #if (__WATCOMC__ >= 1270) /* OW 1.7+ */
55 #if defined(__HIGHC__)
56 #define HAVE_UNISTD_H 1
57 #define HAVE_UTIME_H 1
60 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__)
70 #define HAVE_STRCASECMP 1
71 #define HAVE_STRNCASECMP 1
72 #define HAVE_SIGSETJMP 1
73 #define HAVE_SIGBLOCK 1
74 #define HAVE_STRUCT_UTIMBUF 1
75 #define HAVE_SYS_SELECT_H 1
77 #define HAVE_UTIME_H 1
78 #define HAVE_INT64_T 1
80 #if (DJGPP_MINOR >= 4)
81 #define HAVE_STDBOOL_H 1
82 #define HAVE_STDINT_H 1
83 #define HAVE_SNPRINTF 1
84 #define HAVE_VSNPRINTF 1
85 #define HAVE_UINT32_T 1
90 #define HAVE_STRUCT_UTIMBUF 1
91 #define HAVE_UTIME_H 1
95 #define HAVE_ALLOCA_H 1
96 #define HAVE_INT64_T 1
97 #define HAVE_SNPRINTF 1
98 #define HAVE_STRCASECMP 1
99 #define HAVE_STRNCASECMP 1
100 #define HAVE_STDINT_H 1
101 #define HAVE_UTIME_H 1
106 #define HAVE_STDBOOL_H 1
109 #define HAVE_PROCESS_H 1
110 #define HAVE_STRDUP 1
111 #define HAVE_STDLIB_H 1
112 #define HAVE_STRING_H 1
113 #define HAVE_BUILTIN_MD5 1
114 #define HAVE_ISATTY 1
116 #define lookup_host wget_lookuphost
117 #define select select_s
118 #define socklen_t int
120 #define sock_read wget_sock_read
121 #define sock_write wget_sock_write
122 #define sock_close wget_sock_close
124 #if !defined(__DJGPP__)
126 #define mkdir(p,a) (mkdir)(p)
127 #define strcasecmp stricmp
134 #if !defined(USE_WATT32)
139 #define OS_TYPE "DOS"
141 #endif /* CONFIG_DOS_H */