1/* Configuration header file for MS-DOS/Watt-32 2 Copyright (C) 2007, 2008, 2009 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__) 46 #if (__WATCOMC__ >= 1250) /* OW 1.5+ */ 47 #define OPENWATCOM_15 48 #endif 49 #if (__WATCOMC__ >= 1270) /* OW 1.7+ */ 50 #define OPENWATCOM_17 51 #endif 52#endif 53 54#if defined(__HIGHC__) 55 #define HAVE_UNISTD_H 1 56 #define HAVE_UTIME_H 1 57#endif 58 59#if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__) 60 #define inline 61#endif 62 63#define USE_OPIE 1 64#define USE_DIGEST 1 65#define DEBUG 66 67#ifdef __DJGPP__ 68 #define HAVE__BOOL 1 69 #define HAVE_STRCASECMP 1 70 #define HAVE_STRNCASECMP 1 71 #define HAVE_SIGSETJMP 1 72 #define HAVE_SIGBLOCK 1 73 #define HAVE_STRUCT_UTIMBUF 1 74 #define HAVE_SYS_SELECT_H 1 75 #define HAVE_USLEEP 1 76 #define HAVE_UTIME_H 1 77 #define HAVE_INT64_T 1 78 79 #if (DJGPP_MINOR >= 4) 80 #define HAVE_STDBOOL_H 1 81 #define HAVE_STDINT_H 1 82 #define HAVE_SNPRINTF 1 83 #define HAVE_VSNPRINTF 1 84 #define HAVE_UINT32_T 1 85 #endif 86#endif 87 88#ifdef __HIGHC__ 89 #define HAVE_STRUCT_UTIMBUF 1 90 #define HAVE_UTIME_H 1 91#endif 92 93#ifdef OPENWATCOM_15 94 #define HAVE_ALLOCA_H 1 95 #define HAVE_INT64_T 1 96 #define HAVE_SNPRINTF 1 97 #define HAVE_STRCASECMP 1 98 #define HAVE_STRNCASECMP 1 99 #define HAVE_STDINT_H 1 100 #define HAVE_UTIME_H 1 101#endif 102 103#ifdef OPENWATCOM_17 104 #define HAVE__BOOL 1 105 #define HAVE_STDBOOL_H 1 106#endif 107 108#define HAVE_PROCESS_H 1 109#define HAVE_STRDUP 1 110#define HAVE_STDLIB_H 1 111#define HAVE_STRING_H 1 112#define HAVE_BUILTIN_MD5 1 113#define HAVE_ISATTY 1 114 115#define lookup_host wget_lookuphost 116#define select select_s 117#define socklen_t int 118 119#define sock_read wget_sock_read 120#define sock_write wget_sock_write 121#define sock_close wget_sock_close 122 123#if !defined(__DJGPP__) 124 #include <direct.h> 125 #define mkdir(p,a) (mkdir)(p) 126 #define strcasecmp stricmp 127#endif 128 129#if !defined(MSDOS) 130 #define MSDOS 131#endif 132 133#if !defined(USE_WATT32) 134 #define USE_WATT32 135#endif 136 137#define LOCALEDIR "" 138#define OS_TYPE "DOS" 139 140#endif /* CONFIG_DOS_H */ 141