]> sjero.net Git - wget/blob - msdos/config.h
f43ab4ece1ba67a22b6535a4c4764c558f1f15d2
[wget] / msdos / config.h
1 /* Configuration header file for MS-DOS/Watt-32
2    Copyright (C) 2007 Free Software Foundation, Inc.
3
4    This file is part of GNU Wget.
5
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.
10
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.
15
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/>.
18
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.  */
28
29
30 #ifndef CONFIG_DOS_H
31 #define CONFIG_DOS_H
32
33 #include <stdlib.h>
34 #include <limits.h>
35 #include <tcp.h>
36 #include <malloc.h>
37
38 #ifdef __DJGPP__
39 #include <sys/config.h>
40 #endif
41
42 #include <sys/errno.h>
43
44 #if defined(__WATCOMC__) && (__WATCOMC__ >= 1250)  /* OW 1.5+ */
45   #define OPENWATCOM_15
46 #endif
47
48 #if defined(__HIGHC__)
49   #define inline
50   #define HAVE_UNISTD_H 1
51   #define HAVE_UTIME_H 1
52 #endif
53
54 #if defined(__WATCOMC__) || defined(__BORLANDC__)
55   #define inline
56 #endif
57
58 #ifdef HAVE_SSL
59   #define OPENSSL_NO_KRB5
60 #endif
61
62 #define STDC_HEADERS 1
63 #define RETSIGTYPE void
64
65 #define USE_OPIE 1
66 #define USE_DIGEST 1
67 #define DEBUG
68
69 #ifdef __DJGPP__
70   #define HAVE_STRUCT_UTIMBUF 1
71   #define HAVE_UNAME 1
72   #define HAVE_UTIME_H 1
73   #define HAVE_STRCASECMP 1
74   #define HAVE_STRNCASECMP 1
75   #define HAVE_SYS_SELECT_H 1
76   #define HAVE_USLEEP 1
77   #define HAVE_SIGNAL 1
78   #define HAVE_BASENAME 1
79   #define HAVE_SIGSETJMP 1
80   #define HAVE_SIGBLOCK 1
81   #define HAVE__BOOL 1
82
83   #if (DJGPP_MINOR >= 4)
84     #include <stdbool.h>
85     #define HAVE_SNPRINTF 1
86     #define HAVE_VSNPRINTF 1
87     #define HAVE_UINT32_T 1
88   #endif
89 #endif
90
91 #ifdef __HIGHC__
92   #define HAVE_STRUCT_UTIMBUF 1
93   #define HAVE_UTIME_H 1
94 #endif
95
96 #ifdef OPENWATCOM_15
97   #define HAVE_STRCASECMP
98   #define HAVE_STRNCASECMP
99 #endif
100
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
113 #define HAVE_MD5 1
114 #define HAVE_BUILTIN_MD5 1
115 #define HAVE_ISATTY 1
116 #define HAVE_MEMMOVE 1
117
118 #define OS_TYPE "DOS"
119 #define CTRLBREAK_BACKGND 1
120 #define PROTOTYPES 1
121
122 #define WGET_USE_STDARG
123
124 #define lookup_host  wget_lookuphost
125 #define select       select_s
126 #define socklen_t    int
127
128 #define sock_read    wget_sock_read
129 #define sock_write   wget_sock_write
130 #define sock_close   wget_sock_close
131
132 #if defined(__DJGPP__)
133   #define MKDIR(p,a) mkdir(p,a)
134 #else
135   #define strcasecmp stricmp
136   #define MKDIR(p,a) mkdir(p)
137 #endif
138
139 #if !defined(MSDOS)
140 #define MSDOS
141 #endif
142
143 #endif  /* CONFIG_DOS_H */