1 #ifndef __ARES_CONFIG_WIN32_H
2 #define __ARES_CONFIG_WIN32_H
6 /* Copyright (C) 2004 - 2006 by Daniel Stenberg et al
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation for any purpose and without fee is hereby granted, provided
10 * that the above copyright notice appear in all copies and that both that
11 * copyright notice and this permission notice appear in supporting
12 * documentation, and that the name of M.I.T. not be used in advertising or
13 * publicity pertaining to distribution of the software without specific,
14 * written prior permission. M.I.T. makes no representations about the
15 * suitability of this software for any purpose. It is provided "as is"
16 * without express or implied warranty.
19 /* ================================================================ */
20 /* ares/config-win32.h - Hand crafted config file for Windows */
21 /* ================================================================ */
23 /* ---------------------------------------------------------------- */
25 /* ---------------------------------------------------------------- */
27 /* Define if you have the <getopt.h> header file. */
28 #if defined(__MINGW32__)
29 #define HAVE_GETOPT_H 1
32 /* Define if you have the <sys/time.h> header file */
33 /* #define HAVE_SYS_TIME_H 1 */
35 /* Define if you have the <time.h> header file. */
38 /* Define if you have the <unistd.h> header file. */
39 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
41 #define HAVE_UNISTD_H 1
44 /* Define if you have the <windows.h> header file. */
45 #define HAVE_WINDOWS_H 1
47 /* Define if you have the <winsock.h> header file. */
48 #define HAVE_WINSOCK_H 1
50 /* Define if you have the <winsock2.h> header file. */
51 #define HAVE_WINSOCK2_H 1
53 /* Define if you have the <ws2tcpip.h> header file. */
54 #define HAVE_WS2TCPIP_H 1
56 /* ---------------------------------------------------------------- */
57 /* OTHER HEADER INFO */
58 /* ---------------------------------------------------------------- */
60 /* Define if you have the ANSI C header files. */
61 #define STDC_HEADERS 1
63 /* Define if you can safely include both <sys/time.h> and <time.h>. */
64 /* #define TIME_WITH_SYS_TIME 1 */
66 /* ---------------------------------------------------------------- */
68 /* ---------------------------------------------------------------- */
70 /* Define if you have the ioctlsocket function. */
71 #define HAVE_IOCTLSOCKET 1
73 /* Define if you have the recv function. */
76 /* Define to the type of arg 1 for recv. */
77 #define RECV_TYPE_ARG1 SOCKET
79 /* Define to the type of arg 2 for recv. */
80 #define RECV_TYPE_ARG2 char *
82 /* Define to the type of arg 3 for recv. */
83 #define RECV_TYPE_ARG3 int
85 /* Define to the type of arg 4 for recv. */
86 #define RECV_TYPE_ARG4 int
88 /* Define to the function return type for recv. */
89 #define RECV_TYPE_RETV int
91 /* Define if you have the send function. */
94 /* Define to the type of arg 1 for send. */
95 #define SEND_TYPE_ARG1 SOCKET
97 /* Define to the type qualifier of arg 2 for send. */
98 #define SEND_QUAL_ARG2 const
100 /* Define to the type of arg 2 for send. */
101 #define SEND_TYPE_ARG2 char *
103 /* Define to the type of arg 3 for send. */
104 #define SEND_TYPE_ARG3 int
106 /* Define to the type of arg 4 for send. */
107 #define SEND_TYPE_ARG4 int
109 /* Define to the function return type for send. */
110 #define SEND_TYPE_RETV int
112 /* Specifics for the Watt-32 tcp/ip stack */
115 #define NS_INADDRSZ 4
116 #define HAVE_ARPA_NAMESER_H 1
117 #undef HAVE_WINSOCK_H
118 #undef HAVE_WINSOCK2_H
119 #undef HAVE_WS2TCPIP_H
122 /* ---------------------------------------------------------------- */
124 /* ---------------------------------------------------------------- */
126 /* Define this if you have struct addrinfo */
127 #define HAVE_STRUCT_ADDRINFO 1
129 /* Define this if you have struct sockaddr_storage */
130 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
132 /* Define this if you have struct timeval */
133 #define HAVE_STRUCT_TIMEVAL 1
135 /* ---------------------------------------------------------------- */
136 /* IPV6 COMPATIBILITY */
137 /* ---------------------------------------------------------------- */
139 /* Define this if you have address family AF_INET6 */
140 #define HAVE_AF_INET6 1
142 /* Define this if you have protocol family PF_INET6 */
143 #define HAVE_PF_INET6 1
145 /* Define this if you have struct in6_addr */
146 #define HAVE_STRUCT_IN6_ADDR 1
148 /* Define this if you have struct sockaddr_in6 */
149 #define HAVE_STRUCT_SOCKADDR_IN6 1
151 /* Define this if you have sockaddr_in6 with scopeid */
152 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
155 #endif /* __ARES_CONFIG_WIN32_H */