1 #ifndef __ARES_CONFIG_WIN32_H
2 #define __ARES_CONFIG_WIN32_H
6 /* Copyright (C) 2004 - 2005 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 <unistd.h> header file. */
33 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
35 #define HAVE_UNISTD_H 1
38 /* Define if you have the <windows.h> header file. */
39 #define HAVE_WINDOWS_H 1
41 /* Define if you have the <winsock.h> header file. */
42 #define HAVE_WINSOCK_H 1
44 /* Define if you have the <winsock2.h> header file. */
45 #define HAVE_WINSOCK2_H 1
47 /* Define if you have the <ws2tcpip.h> header file. */
48 #define HAVE_WS2TCPIP_H 1
50 /* ---------------------------------------------------------------- */
52 /* ---------------------------------------------------------------- */
54 /* Define if you have the ioctlsocket function. */
55 #define HAVE_IOCTLSOCKET 1
57 /* Define if you have the getnameinfo function. */
58 #define HAVE_GETNAMEINFO 1
60 /* Define to the type qualifier of arg 1 for getnameinfo. */
61 #define GETNAMEINFO_QUAL_ARG1 const
63 /* Define to the type of arg 1 for getnameinfo. */
64 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
66 /* Define to the type of arg 2 for getnameinfo. */
67 #define GETNAMEINFO_TYPE_ARG2 socklen_t
69 /* Define to the type of args 4 and 6 for getnameinfo. */
70 #define GETNAMEINFO_TYPE_ARG46 DWORD
72 /* Define to the type of arg 7 for getnameinfo. */
73 #define GETNAMEINFO_TYPE_ARG7 int
75 /* Define if you have the recv function. */
78 /* Define to the type of arg 1 for recv. */
79 #define RECV_TYPE_ARG1 SOCKET
81 /* Define to the type of arg 2 for recv. */
82 #define RECV_TYPE_ARG2 char *
84 /* Define to the type of arg 3 for recv. */
85 #define RECV_TYPE_ARG3 int
87 /* Define to the type of arg 4 for recv. */
88 #define RECV_TYPE_ARG4 int
90 /* Define to the function return type for recv. */
91 #define RECV_TYPE_RETV int
93 /* Define if you have the send function. */
96 /* Define to the type of arg 1 for send. */
97 #define SEND_TYPE_ARG1 SOCKET
99 /* Define to the type of arg 2 for send. */
100 #define SEND_TYPE_ARG2 char *
102 /* Define to the type of arg 3 for send. */
103 #define SEND_TYPE_ARG3 int
105 /* Define to the type of arg 4 for send. */
106 #define SEND_TYPE_ARG4 int
108 /* Define to the function return type for send. */
109 #define SEND_TYPE_RETV int
111 /* ---------------------------------------------------------------- */
113 /* ---------------------------------------------------------------- */
115 /* Define this if you have struct addrinfo */
116 #define HAVE_STRUCT_ADDRINFO 1
118 /* Define this if you have struct sockaddr_storage */
119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
121 /* ---------------------------------------------------------------- */
122 /* IPV6 COMPATIBILITY */
123 /* ---------------------------------------------------------------- */
125 /* Define this if you have address family AF_INET6 */
126 #define HAVE_AF_INET6 1
128 /* Define this if you have protocol family PF_INET6 */
129 #define HAVE_PF_INET6 1
131 /* Define this if you have struct in6_addr */
132 #define HAVE_STRUCT_IN6_ADDR 1
134 /* Define this if you have struct sockaddr_in6 */
135 #define HAVE_STRUCT_SOCKADDR_IN6 1
137 /* Define this if you have sockaddr_in6 with scopeid */
138 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
141 #endif /* __ARES_CONFIG_WIN32_H */