1 /* Configuration header file for MS-DOS/Watt-32
2 Copyright (C) 2007 Free Software Foundation, Inc.
4 This file is part of GNU Wget.
6 GNU Wget is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 GNU Wget is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Wget. If not, see <http://www.gnu.org/licenses/>.
19 In addition, as a special exception, the Free Software Foundation
20 gives permission to link the code of its release of Wget with the
21 OpenSSL project's "OpenSSL" library (or with modified versions of it
22 that use the same license as the "OpenSSL" library), and distribute
23 the linked executables. You must obey the GNU General Public License
24 in all respects for all of the code used other than "OpenSSL". If you
25 modify this file, you may extend this exception to your version of the
26 file, but you are not obligated to do so. If you do not wish to do
27 so, delete this exception statement from your version. */
39 #include <sys/config.h>
42 #include <sys/errno.h>
44 #if defined(__WATCOMC__)
45 #if (__WATCOMC__ >= 1250) /* OW 1.5+ */
48 #if (__WATCOMC__ >= 1270) /* OW 1.7+ */
53 #if defined(__HIGHC__)
54 #define HAVE_UNISTD_H 1
55 #define HAVE_UTIME_H 1
58 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__)
68 #define HAVE_STRCASECMP 1
69 #define HAVE_STRNCASECMP 1
70 #define HAVE_SIGSETJMP 1
71 #define HAVE_SIGBLOCK 1
72 #define HAVE_STRUCT_UTIMBUF 1
73 #define HAVE_SYS_SELECT_H 1
75 #define HAVE_UTIME_H 1
76 #define HAVE_INT64_T 1
78 #if (DJGPP_MINOR >= 4)
79 #define HAVE_STDBOOL_H 1
80 #define HAVE_STDINT_H 1
81 #define HAVE_SNPRINTF 1
82 #define HAVE_VSNPRINTF 1
83 #define HAVE_UINT32_T 1
88 #define HAVE_STRUCT_UTIMBUF 1
89 #define HAVE_UTIME_H 1
93 #define HAVE_INT64_T 1
94 #define HAVE_SNPRINTF 1
95 #define HAVE_STRCASECMP 1
96 #define HAVE_STRNCASECMP 1
97 #define HAVE_STDINT_H 1
98 #define HAVE_UTIME_H 1
103 #define HAVE_STDBOOL_H 1
106 #define HAVE_PROCESS_H 1
107 #define HAVE_STRDUP 1
108 #define HAVE_STDLIB_H 1
109 #define HAVE_STRING_H 1
110 #define HAVE_BUILTIN_MD5 1
111 #define HAVE_ISATTY 1
113 #define lookup_host wget_lookuphost
114 #define select select_s
115 #define socklen_t int
117 #define sock_read wget_sock_read
118 #define sock_write wget_sock_write
119 #define sock_close wget_sock_close
121 #if !defined(__DJGPP__)
123 #define mkdir(p,a) (mkdir)(p)
124 #define strcasecmp stricmp
131 #define OS_TYPE "DOS"
133 #endif /* CONFIG_DOS_H */