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__) && (__WATCOMC__ >= 1250) /* OW 1.5+ */
48 #if defined(__HIGHC__)
50 #define HAVE_UNISTD_H 1
51 #define HAVE_UTIME_H 1
54 #if defined(__WATCOMC__) || defined(__BORLANDC__)
59 #define OPENSSL_NO_KRB5
62 #define STDC_HEADERS 1
63 #define RETSIGTYPE void
70 #define HAVE_STRUCT_UTIMBUF 1
72 #define HAVE_UTIME_H 1
73 #define HAVE_STRCASECMP 1
74 #define HAVE_STRNCASECMP 1
75 #define HAVE_SYS_SELECT_H 1
78 #define HAVE_BASENAME 1
79 #define HAVE_SIGSETJMP 1
80 #define HAVE_SIGBLOCK 1
83 #if (DJGPP_MINOR >= 4)
85 #define HAVE_SNPRINTF 1
86 #define HAVE_VSNPRINTF 1
87 #define HAVE_UINT32_T 1
92 #define HAVE_STRUCT_UTIMBUF 1
93 #define HAVE_UTIME_H 1
97 #define HAVE_STRCASECMP
98 #define HAVE_STRNCASECMP
101 #define HAVE_GETHOSTBYNAME 1
102 #define HAVE_GETHOSTNAME 1
103 #define HAVE_SELECT 1
104 #define HAVE_STRDUP 1
105 #define HAVE_STRERROR 1
106 #define HAVE_STRSTR 1
107 #define HAVE_MKTIME 1
108 #define HAVE_STDARG_H 1
109 #define HAVE_STDLIB_H 1
110 #define HAVE_STRING_H 1
111 #define HAVE_SIGNAL_H 1
112 #define HAVE_GETTIMEOFDAY 1
114 #define HAVE_BUILTIN_MD5 1
115 #define HAVE_ISATTY 1
116 #define HAVE_MEMMOVE 1
118 #define OS_TYPE "DOS"
119 #define CTRLBREAK_BACKGND 1
122 #define WGET_USE_STDARG
124 #define lookup_host wget_lookuphost
125 #define select select_s
126 #define socklen_t int
128 #define sock_read wget_sock_read
129 #define sock_write wget_sock_write
130 #define sock_close wget_sock_close
132 #if defined(__DJGPP__)
133 #define MKDIR(p,a) mkdir(p,a)
135 #define strcasecmp stricmp
136 #define MKDIR(p,a) mkdir(p)
143 #endif /* CONFIG_DOS_H */