]> sjero.net Git - wget/blob - msdos/config.h
Applying Gisle's latest MS-DOS patches.
[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 HAVE_UNISTD_H 1
50   #define HAVE_UTIME_H 1
51 #endif
52
53 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__)
54   #define inline
55 #endif
56
57 #define USE_OPIE 1
58 #define USE_DIGEST 1
59 #define DEBUG
60
61 #ifdef __DJGPP__
62   #define HAVE__BOOL          1
63   #define HAVE_STRCASECMP 1
64   #define HAVE_STRNCASECMP 1
65   #define HAVE_SIGSETJMP 1
66   #define HAVE_SIGBLOCK 1
67   #define HAVE_STRUCT_UTIMBUF 1
68   #define HAVE_SYS_SELECT_H   1
69   #define HAVE_USLEEP         1
70   #define HAVE_UTIME_H        1
71   #define HAVE_INT64_T        1
72
73   #if (DJGPP_MINOR >= 4)
74     #include <stdbool.h>
75     #define HAVE_SNPRINTF 1
76     #define HAVE_VSNPRINTF 1
77     #define HAVE_UINT32_T 1
78   #endif
79 #endif
80
81 #ifdef __HIGHC__
82   #define HAVE_STRUCT_UTIMBUF 1
83   #define HAVE_UTIME_H 1
84 #endif
85
86 #ifdef OPENWATCOM_15
87   #define HAVE_INT64_T     1
88   #define HAVE_STRCASECMP  1
89   #define HAVE_STRNCASECMP 1
90   #define HAVE_UTIME_H     1
91 #endif
92
93 #define HAVE_PROCESS_H     1
94 #define HAVE_STRDUP 1
95 #define HAVE_STDLIB_H 1
96 #define HAVE_STRING_H 1
97 #define HAVE_BUILTIN_MD5 1
98 #define HAVE_ISATTY 1
99
100 #define lookup_host  wget_lookuphost
101 #define select       select_s
102 #define socklen_t    int
103
104 #define sock_read    wget_sock_read
105 #define sock_write   wget_sock_write
106 #define sock_close   wget_sock_close
107
108 #if !defined(__DJGPP__)
109   #include <direct.h>
110   #define mkdir(p,a)  (mkdir)(p)
111   #define strcasecmp stricmp
112 #endif
113
114 #if !defined(MSDOS)
115   #define MSDOS
116 #endif
117
118 #define OS_TYPE "DOS"
119
120 #endif  /* CONFIG_DOS_H */