]> sjero.net Git - wget/blob - msdos/config.h
Updated licensing exception for OpenSSL from the SFLC.
[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    Additional permission under GNU GPL version 3 section 7
20
21    If you modify this program, or any covered work, by linking or
22    combining it with the OpenSSL project's OpenSSL library (or a
23    modified version of that library), containing parts covered by the
24    terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
25    grants you additional permission to convey the resulting work.
26    Corresponding Source for a non-source form of such a combination
27    shall include the source code for the parts of OpenSSL used as well
28    as that of the covered work.  */
29
30
31 #ifndef CONFIG_DOS_H
32 #define CONFIG_DOS_H
33
34 #include <stdlib.h>
35 #include <limits.h>
36 #include <tcp.h>
37 #include <malloc.h>
38
39 #ifdef __DJGPP__
40 #include <sys/config.h>
41 #endif
42
43 #include <sys/errno.h>
44
45 #if defined(__WATCOMC__) && (__WATCOMC__ >= 1250)  /* OW 1.5+ */
46   #define OPENWATCOM_15
47 #endif
48
49 #if defined(__HIGHC__)
50   #define inline
51   #define HAVE_UNISTD_H 1
52   #define HAVE_UTIME_H 1
53 #endif
54
55 #if defined(__WATCOMC__) || defined(__BORLANDC__)
56   #define inline
57 #endif
58
59 #ifdef HAVE_SSL
60   #define OPENSSL_NO_KRB5
61 #endif
62
63 #define STDC_HEADERS 1
64 #define RETSIGTYPE void
65
66 #define USE_OPIE 1
67 #define USE_DIGEST 1
68 #define DEBUG
69
70 #ifdef __DJGPP__
71   #define HAVE_STRUCT_UTIMBUF 1
72   #define HAVE_UNAME 1
73   #define HAVE_UTIME_H 1
74   #define HAVE_STRCASECMP 1
75   #define HAVE_STRNCASECMP 1
76   #define HAVE_SYS_SELECT_H 1
77   #define HAVE_USLEEP 1
78   #define HAVE_SIGNAL 1
79   #define HAVE_BASENAME 1
80   #define HAVE_SIGSETJMP 1
81   #define HAVE_SIGBLOCK 1
82   #define HAVE__BOOL 1
83
84   #if (DJGPP_MINOR >= 4)
85     #include <stdbool.h>
86     #define HAVE_SNPRINTF 1
87     #define HAVE_VSNPRINTF 1
88     #define HAVE_UINT32_T 1
89   #endif
90 #endif
91
92 #ifdef __HIGHC__
93   #define HAVE_STRUCT_UTIMBUF 1
94   #define HAVE_UTIME_H 1
95 #endif
96
97 #ifdef OPENWATCOM_15
98   #define HAVE_STRCASECMP
99   #define HAVE_STRNCASECMP
100 #endif
101
102 #define HAVE_GETHOSTBYNAME 1
103 #define HAVE_GETHOSTNAME 1
104 #define HAVE_SELECT 1
105 #define HAVE_STRDUP 1
106 #define HAVE_STRERROR 1
107 #define HAVE_STRSTR 1
108 #define HAVE_MKTIME 1
109 #define HAVE_STDARG_H 1
110 #define HAVE_STDLIB_H 1
111 #define HAVE_STRING_H 1
112 #define HAVE_SIGNAL_H 1
113 #define HAVE_GETTIMEOFDAY 1
114 #define HAVE_MD5 1
115 #define HAVE_BUILTIN_MD5 1
116 #define HAVE_ISATTY 1
117 #define HAVE_MEMMOVE 1
118
119 #define OS_TYPE "DOS"
120 #define CTRLBREAK_BACKGND 1
121 #define PROTOTYPES 1
122
123 #define WGET_USE_STDARG
124
125 #define lookup_host  wget_lookuphost
126 #define select       select_s
127 #define socklen_t    int
128
129 #define sock_read    wget_sock_read
130 #define sock_write   wget_sock_write
131 #define sock_close   wget_sock_close
132
133 #if defined(__DJGPP__)
134   #define MKDIR(p,a) mkdir(p,a)
135 #else
136   #define strcasecmp stricmp
137   #define MKDIR(p,a) mkdir(p)
138 #endif
139
140 #if !defined(MSDOS)
141 #define MSDOS
142 #endif
143
144 #endif  /* CONFIG_DOS_H */