1 /* Configuration header file for MS-DOS/Watt-32 2 Copyright (C) 2007, 2008, 2009, 2010, 2011, 2015 Free Software 3 Foundation, Inc. 4 5 This file is part of GNU Wget. 6 7 GNU Wget is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3 of the License, or 10 (at your option) any later version. 11 12 GNU Wget is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with Wget. If not, see <http://www.gnu.org/licenses/>. 19 20 Additional permission under GNU GPL version 3 section 7 21 22 If you modify this program, or any covered work, by linking or 23 combining it with the OpenSSL project's OpenSSL library (or a 24 modified version of that library), containing parts covered by the 25 terms of the OpenSSL or SSLeay licenses, the Free Software Foundation 26 grants you additional permission to convey the resulting work. 27 Corresponding Source for a non-source form of such a combination 28 shall include the source code for the parts of OpenSSL used as well 29 as that of the covered work. */ 30 31 32 #ifndef CONFIG_DOS_H 33 #define CONFIG_DOS_H 34 35 #include <stdlib.h> 36 #include <limits.h> 37 #include <tcp.h> 38 #include <malloc.h> 39 40 #ifdef __DJGPP__ 41 #include <sys/config.h> 42 #endif 43 44 #include <sys/errno.h> 45 46 #if defined(__WATCOMC__) 47 #if (__WATCOMC__ >= 1250) /* OW 1.5+ */ 48 #define OPENWATCOM_15 49 #endif 50 #if (__WATCOMC__ >= 1270) /* OW 1.7+ */ 51 #define OPENWATCOM_17 52 #endif 53 #endif 54 55 #if defined(__HIGHC__) 56 #define HAVE_UNISTD_H 1 57 #define HAVE_UTIME_H 1 58 #endif 59 60 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__) 61 #define inline 62 #endif 63 64 #define USE_OPIE 1 65 #define USE_DIGEST 1 66 #define DEBUG 67 68 #ifdef __DJGPP__ 69 #define HAVE__BOOL 1 70 #define HAVE_STRCASECMP 1 71 #define HAVE_STRNCASECMP 1 72 #define HAVE_SIGSETJMP 1 73 #define HAVE_SIGBLOCK 1 74 #define HAVE_STRUCT_UTIMBUF 1 75 #define HAVE_SYS_SELECT_H 1 76 #define HAVE_USLEEP 1 77 #define HAVE_UTIME_H 1 78 #define HAVE_INT64_T 1 79 80 #if (DJGPP_MINOR >= 4) 81 #define HAVE_STDBOOL_H 1 82 #define HAVE_STDINT_H 1 83 #define HAVE_SNPRINTF 1 84 #define HAVE_VSNPRINTF 1 85 #define HAVE_UINT32_T 1 86 #endif 87 #endif 88 89 #ifdef __HIGHC__ 90 #define HAVE_STRUCT_UTIMBUF 1 91 #define HAVE_UTIME_H 1 92 #endif 93 94 #ifdef OPENWATCOM_15 95 #define HAVE_ALLOCA_H 1 96 #define HAVE_INT64_T 1 97 #define HAVE_SNPRINTF 1 98 #define HAVE_STRCASECMP 1 99 #define HAVE_STRNCASECMP 1 100 #define HAVE_STDINT_H 1 101 #define HAVE_UTIME_H 1 102 #endif 103 104 #ifdef OPENWATCOM_17 105 #define HAVE__BOOL 1 106 #define HAVE_STDBOOL_H 1 107 #endif 108 109 #define HAVE_PROCESS_H 1 110 #define HAVE_STRDUP 1 111 #define HAVE_STDLIB_H 1 112 #define HAVE_STRING_H 1 113 #define HAVE_BUILTIN_MD5 1 114 #define HAVE_ISATTY 1 115 116 #define lookup_host wget_lookuphost 117 #define select select_s 118 #define socklen_t int 119 120 #define sock_read wget_sock_read 121 #define sock_write wget_sock_write 122 #define sock_close wget_sock_close 123 124 #if !defined(__DJGPP__) 125 #include <direct.h> 126 #define mkdir(p,a) (mkdir)(p) 127 #define strcasecmp stricmp 128 #endif 129 130 #if !defined(MSDOS) 131 #define MSDOS 132 #endif 133 134 #if !defined(USE_WATT32) 135 #define USE_WATT32 136 #endif 137 138 #define LOCALEDIR "" 139 #define OS_TYPE "DOS" 140 141 #endif /* CONFIG_DOS_H */ 142