lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef HEADER_CONFIG_DOS_H |
| 2 | #define HEADER_CONFIG_DOS_H |
| 3 | |
| 4 | |
| 5 | /* ================================================================ */ |
| 6 | /* ares/config-dos.h - Hand crafted config file for DOS */ |
| 7 | /* ================================================================ */ |
| 8 | |
| 9 | #define PACKAGE "c-ares" |
| 10 | |
| 11 | #define HAVE_ERRNO_H 1 |
| 12 | #define HAVE_GETENV 1 |
| 13 | #define HAVE_GETTIMEOFDAY 1 |
| 14 | #define HAVE_IOCTLSOCKET 1 |
| 15 | #define HAVE_IOCTLSOCKET_FIONBIO 1 |
| 16 | #define HAVE_LIMITS_H 1 |
| 17 | #define HAVE_NET_IF_H 1 |
| 18 | #define HAVE_RECV 1 |
| 19 | #define HAVE_RECVFROM 1 |
| 20 | #define HAVE_SEND 1 |
| 21 | #define HAVE_STRDUP 1 |
| 22 | #define HAVE_STRICMP 1 |
| 23 | #define HAVE_STRUCT_IN6_ADDR 1 |
| 24 | #define HAVE_STRUCT_TIMEVAL 1 |
| 25 | #define HAVE_SYS_IOCTL_H 1 |
| 26 | #define HAVE_SYS_SOCKET_H 1 |
| 27 | #define HAVE_SYS_STAT_H 1 |
| 28 | #define HAVE_SYS_TYPES_H 1 |
| 29 | #define HAVE_TIME_H 1 |
| 30 | #define HAVE_UNISTD_H 1 |
| 31 | |
| 32 | #define NEED_MALLOC_H 1 |
| 33 | |
| 34 | #define RETSIGTYPE void |
| 35 | #define TIME_WITH_SYS_TIME 1 |
| 36 | |
| 37 | /* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */ |
| 38 | |
| 39 | #define SEND_TYPE_ARG1 int |
| 40 | #define SEND_QUAL_ARG2 const |
| 41 | #define SEND_TYPE_ARG2 void * |
| 42 | #define SEND_TYPE_ARG3 int |
| 43 | #define SEND_TYPE_ARG4 int |
| 44 | #define SEND_TYPE_RETV int |
| 45 | |
| 46 | #define RECV_TYPE_ARG1 int |
| 47 | #define RECV_TYPE_ARG2 void * |
| 48 | #define RECV_TYPE_ARG3 int |
| 49 | #define RECV_TYPE_ARG4 int |
| 50 | #define RECV_TYPE_RETV int |
| 51 | |
| 52 | #define RECVFROM_TYPE_ARG1 int |
| 53 | #define RECVFROM_TYPE_ARG2 void |
| 54 | #define RECVFROM_TYPE_ARG3 int |
| 55 | #define RECVFROM_TYPE_ARG4 int |
| 56 | #define RECVFROM_TYPE_ARG5 struct sockaddr |
| 57 | #define RECVFROM_TYPE_ARG6 int |
| 58 | #define RECVFROM_TYPE_RETV int |
| 59 | #define RECVFROM_TYPE_ARG2_IS_VOID 1 |
| 60 | |
| 61 | #define BSD |
| 62 | |
| 63 | #if defined(__HIGHC__) || \ |
| 64 | (defined(__GNUC__) && (__GNUC__ < 4)) |
| 65 | #define ssize_t int |
| 66 | #endif |
| 67 | |
| 68 | /* Target HAVE_x section */ |
| 69 | |
| 70 | #if defined(DJGPP) |
| 71 | #define HAVE_STRCASECMP 1 |
| 72 | #define HAVE_STRNCASECMP 1 |
| 73 | #define HAVE_SYS_TIME_H 1 |
| 74 | #define HAVE_VARIADIC_MACROS_GCC 1 |
| 75 | |
| 76 | /* Because djgpp <= 2.03 doesn't have snprintf() etc. */ |
| 77 | #if (DJGPP_MINOR < 4) |
| 78 | #define _MPRINTF_REPLACE |
| 79 | #endif |
| 80 | |
| 81 | #elif defined(__WATCOMC__) |
| 82 | #define HAVE_STRCASECMP 1 |
| 83 | |
| 84 | #elif defined(__HIGHC__) |
| 85 | #define HAVE_SYS_TIME_H 1 |
| 86 | #define strerror(e) strerror_s_((e)) |
| 87 | #endif |
| 88 | |
| 89 | #ifdef WATT32 |
| 90 | #define HAVE_AF_INET6 1 |
| 91 | #define HAVE_ARPA_INET_H 1 |
| 92 | #define HAVE_ARPA_NAMESER_H 1 |
| 93 | #define HAVE_CLOSE_S 1 |
| 94 | #define HAVE_GETHOSTNAME 1 |
| 95 | #define HAVE_NETDB_H 1 |
| 96 | #define HAVE_NETINET_IN_H 1 |
| 97 | #define HAVE_NETINET_TCP_H 1 |
| 98 | #define HAVE_PF_INET6 1 |
| 99 | #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 100 | #define HAVE_STRUCT_ADDRINFO 1 |
| 101 | #define HAVE_STRUCT_IN6_ADDR 1 |
| 102 | #define HAVE_STRUCT_SOCKADDR_IN6 1 |
| 103 | #define HAVE_SYS_SOCKET_H 1 |
| 104 | #define HAVE_SYS_UIO_H 1 |
| 105 | #define NS_INADDRSZ 4 |
| 106 | #define HAVE_STRUCT_SOCKADDR_IN6 1 |
| 107 | #endif |
| 108 | |
| 109 | #undef word |
| 110 | #undef byte |
| 111 | |
| 112 | #endif /* HEADER_CONFIG_DOS_H */ |
| 113 | |