Platforms that don't have/run configure need default values in their config files...
[platform/upstream/c-ares.git] / config-win32.h
1 #ifndef __ARES_CONFIG_WIN32_H
2 #define __ARES_CONFIG_WIN32_H
3
4 /* $Id$ */
5
6 /* Copyright (C) 2004 - 2005 by Daniel Stenberg et al
7  *
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.
17  */
18
19 /* ================================================================ */
20 /*    ares/config-win32.h - Hand crafted config file for windows    */
21 /* ================================================================ */
22
23 /* ---------------------------------------------------------------- */
24 /*                          HEADER FILES                            */
25 /* ---------------------------------------------------------------- */
26
27 /* Define if you have the <getopt.h> header file.  */
28 #if defined(__MINGW32__)
29 #define HAVE_GETOPT_H 1
30 #endif
31
32 /* Define if you have the <unistd.h> header file.  */
33 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
34     defined(__POCC__)
35 #define HAVE_UNISTD_H 1
36 #endif
37
38 /* Define if you have the <windows.h> header file.  */
39 #define HAVE_WINDOWS_H 1
40
41 /* Define if you have the <winsock.h> header file.  */
42 #define HAVE_WINSOCK_H 1
43
44 /* Define if you have the <winsock2.h> header file.  */
45 #define HAVE_WINSOCK2_H 1
46
47 /* Define if you have the <ws2tcpip.h> header file.  */
48 #define HAVE_WS2TCPIP_H 1
49
50 /* ---------------------------------------------------------------- */
51 /*                             FUNCTIONS                            */
52 /* ---------------------------------------------------------------- */
53
54 /* Define if you have the ioctlsocket function.  */
55 #define HAVE_IOCTLSOCKET 1
56
57 /* Define if you have the getnameinfo function. */
58 #define HAVE_GETNAMEINFO 1
59
60 /* Define to the type qualifier of arg 1 for getnameinfo. */
61 #define GETNAMEINFO_QUAL_ARG1 const
62
63 /* Define to the type of arg 1 for getnameinfo. */
64 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
65
66 /* Define to the type of arg 2 for getnameinfo. */
67 #define GETNAMEINFO_TYPE_ARG2 socklen_t
68
69 /* Define to the type of args 4 and 6 for getnameinfo. */
70 #define GETNAMEINFO_TYPE_ARG46 DWORD
71
72 /* Define to the type of arg 7 for getnameinfo. */
73 #define GETNAMEINFO_TYPE_ARG7 int
74
75 /* Define if you have the recv function. */
76 #define HAVE_RECV 1
77
78 /* Define to the type of arg 1 for recv. */
79 #define RECV_TYPE_ARG1 SOCKET
80
81 /* Define to the type of arg 2 for recv. */
82 #define RECV_TYPE_ARG2 char *
83
84 /* Define to the type of arg 3 for recv. */
85 #define RECV_TYPE_ARG3 int
86
87 /* Define to the type of arg 4 for recv. */
88 #define RECV_TYPE_ARG4 int
89
90 /* Define to the function return type for recv. */
91 #define RECV_TYPE_RETV int
92
93 /* Define if you have the send function. */
94 #define HAVE_SEND 1
95
96 /* Define to the type of arg 1 for send. */
97 #define SEND_TYPE_ARG1 SOCKET
98
99 /* Define to the type of arg 2 for send. */
100 #define SEND_TYPE_ARG2 char *
101
102 /* Define to the type of arg 3 for send. */
103 #define SEND_TYPE_ARG3 int
104
105 /* Define to the type of arg 4 for send. */
106 #define SEND_TYPE_ARG4 int
107
108 /* Define to the function return type for send. */
109 #define SEND_TYPE_RETV int
110
111 /* ---------------------------------------------------------------- */
112 /*                          STRUCT RELATED                          */
113 /* ---------------------------------------------------------------- */
114
115 /* Define this if you have struct addrinfo */
116 #define HAVE_STRUCT_ADDRINFO 1
117
118 /* Define this if you have struct sockaddr_storage */
119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
120
121 /* ---------------------------------------------------------------- */
122 /*                         IPV6 COMPATIBILITY                       */
123 /* ---------------------------------------------------------------- */
124
125 /* Define this if you have address family AF_INET6 */
126 #define HAVE_AF_INET6 1
127
128 /* Define this if you have protocol family PF_INET6 */
129 #define HAVE_PF_INET6 1
130
131 /* Define this if you have struct in6_addr */
132 #define HAVE_STRUCT_IN6_ADDR 1
133
134 /* Define this if you have struct sockaddr_in6 */
135 #define HAVE_STRUCT_SOCKADDR_IN6 1
136
137 /* Define this if you have sockaddr_in6 with scopeid */
138 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
139
140
141 #endif  /* __ARES_CONFIG_WIN32_H */