1 /* Generated from ares_config.h.cmake*/
3 /* Define if building universal (internal helper macro) */
4 #undef AC_APPLE_UNIVERSAL_BUILD
6 /* define this if ares is built for a big endian system */
9 /* when building as static part of libcurl */
10 #undef BUILDING_LIBCURL
12 /* Defined for build that exposes internal static functions for testing. */
13 #undef CARES_EXPOSE_STATICS
15 /* Defined for build with symbol hiding. */
16 #undef CARES_SYMBOL_HIDING
18 /* Definition to make a library symbol externally visible. */
19 #undef CARES_SYMBOL_SCOPE_EXTERN
21 /* Use resolver library to configure cares */
22 /* #undef CARES_USE_LIBRESOLV */
24 /* if a /etc/inet dir is being used */
27 /* Define to the type of arg 2 for gethostname. */
28 #define GETHOSTNAME_TYPE_ARG2 size_t
30 /* Define to the type qualifier of arg 1 for getnameinfo. */
31 #define GETNAMEINFO_QUAL_ARG1
33 /* Define to the type of arg 1 for getnameinfo. */
34 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
36 /* Define to the type of arg 2 for getnameinfo. */
37 #define GETNAMEINFO_TYPE_ARG2 socklen_t
39 /* Define to the type of args 4 and 6 for getnameinfo. */
40 #define GETNAMEINFO_TYPE_ARG46 socklen_t
42 /* Define to the type of arg 7 for getnameinfo. */
43 #define GETNAMEINFO_TYPE_ARG7 int
45 /* Specifies the number of arguments to getservbyport_r */
46 #define GETSERVBYPORT_R_ARGS 6
48 /* Define to 1 if you have AF_INET6. */
51 /* Define to 1 if you have the <arpa/inet.h> header file. */
52 #define HAVE_ARPA_INET_H
54 /* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
55 #define HAVE_ARPA_NAMESER_COMPAT_H
57 /* Define to 1 if you have the <arpa/nameser.h> header file. */
58 #define HAVE_ARPA_NAMESER_H
60 /* Define to 1 if you have the <assert.h> header file. */
63 /* Define to 1 if you have the `bitncmp' function. */
64 /* #undef HAVE_BITNCMP */
66 /* Define to 1 if bool is an available type. */
69 /* Define HAVE_CLOCK_GETTIME_MONOTONIC if you have the clock_gettime
70 * function and monotonic timer.
72 * IMPORTANT: gRPC MANUAL EDIT HERE!
73 * Note: setting HAVE_CLOCK_GETTIME_MONOTONIC causes use of the clock_gettime
74 * function from glibc, don't set it to support glibc < 2.17 */
75 #ifndef GPR_BACKWARDS_COMPATIBILITY_MODE
76 #define HAVE_CLOCK_GETTIME_MONOTONIC
79 /* Define to 1 if you have the closesocket function. */
80 /* #undef HAVE_CLOSESOCKET */
82 /* Define to 1 if you have the CloseSocket camel case function. */
83 /* #undef HAVE_CLOSESOCKET_CAMEL */
85 /* Define to 1 if you have the connect function. */
88 /* define if the compiler supports basic C++11 syntax */
89 /* #undef HAVE_CXX11 */
91 /* Define to 1 if you have the <dlfcn.h> header file. */
94 /* Define to 1 if you have the <errno.h> header file. */
97 /* Define to 1 if you have the fcntl function. */
100 /* Define to 1 if you have the <fcntl.h> header file. */
103 /* Define to 1 if you have a working fcntl O_NONBLOCK function. */
104 #define HAVE_FCNTL_O_NONBLOCK
106 /* Define to 1 if you have the freeaddrinfo function. */
107 #define HAVE_FREEADDRINFO
109 /* Define to 1 if you have a working getaddrinfo function. */
110 #define HAVE_GETADDRINFO
112 /* Define to 1 if the getaddrinfo function is threadsafe. */
113 /* #undef HAVE_GETADDRINFO_THREADSAFE */
115 /* Define to 1 if you have the getenv function. */
118 /* Define to 1 if you have the gethostbyaddr function. */
119 #define HAVE_GETHOSTBYADDR
121 /* Define to 1 if you have the gethostbyname function. */
122 #define HAVE_GETHOSTBYNAME
124 /* Define to 1 if you have the gethostname function. */
125 #define HAVE_GETHOSTNAME
127 /* Define to 1 if you have the getnameinfo function. */
128 #define HAVE_GETNAMEINFO
130 /* Define to 1 if you have the getservbyport_r function. */
131 #define HAVE_GETSERVBYPORT_R
133 /* Define to 1 if you have the `gettimeofday' function. */
134 #define HAVE_GETTIMEOFDAY
136 /* Define to 1 if you have the `if_indextoname' function. */
137 #define HAVE_IF_INDEXTONAME
139 /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
140 /* #undef HAVE_INET_NET_PTON */
142 /* Define to 1 if you have a IPv6 capable working inet_ntop function. */
143 #define HAVE_INET_NTOP
145 /* Define to 1 if you have a IPv6 capable working inet_pton function. */
146 #define HAVE_INET_PTON
148 /* Define to 1 if you have the <inttypes.h> header file. */
149 #define HAVE_INTTYPES_H
151 /* Define to 1 if you have the ioctl function. */
154 /* Define to 1 if you have the ioctlsocket function. */
155 /* #undef HAVE_IOCTLSOCKET */
157 /* Define to 1 if you have the IoctlSocket camel case function. */
158 /* #undef HAVE_IOCTLSOCKET_CAMEL */
160 /* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
162 /* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */
164 /* Define to 1 if you have a working ioctlsocket FIONBIO function. */
165 /* #undef HAVE_IOCTLSOCKET_FIONBIO */
167 /* Define to 1 if you have a working ioctl FIONBIO function. */
168 #define HAVE_IOCTL_FIONBIO
170 /* Define to 1 if you have a working ioctl SIOCGIFADDR function. */
171 #define HAVE_IOCTL_SIOCGIFADDR
173 /* Define to 1 if you have the `resolve' library (-lresolve). */
174 /* #undef HAVE_LIBRESOLV */
176 /* Define to 1 if you have the <limits.h> header file. */
177 #define HAVE_LIMITS_H
179 /* if your compiler supports LL */
182 /* Define to 1 if the compiler supports the 'long long' data type. */
183 #define HAVE_LONGLONG
185 /* Define to 1 if you have the malloc.h header file. */
186 #define HAVE_MALLOC_H
188 /* Define to 1 if you have the memory.h header file. */
189 #define HAVE_MEMORY_H
191 /* Define to 1 if you have the MSG_NOSIGNAL flag. */
192 #define HAVE_MSG_NOSIGNAL
194 /* Define to 1 if you have the <netdb.h> header file. */
197 /* Define to 1 if you have the <netinet/in.h> header file. */
198 #define HAVE_NETINET_IN_H
200 /* Define to 1 if you have the <netinet/tcp.h> header file. */
201 #define HAVE_NETINET_TCP_H
203 /* Define to 1 if you have the <net/if.h> header file. */
204 #define HAVE_NET_IF_H
206 /* Define to 1 if you have PF_INET6. */
207 #define HAVE_PF_INET6
209 /* Define to 1 if you have the recv function. */
212 /* Define to 1 if you have the recvfrom function. */
213 #define HAVE_RECVFROM
215 /* Define to 1 if you have the send function. */
218 /* Define to 1 if you have the setsockopt function. */
219 #define HAVE_SETSOCKOPT
221 /* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */
222 /* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */
224 /* Define to 1 if you have the <signal.h> header file. */
225 #define HAVE_SIGNAL_H
227 /* Define to 1 if sig_atomic_t is an available typedef. */
228 #define HAVE_SIG_ATOMIC_T
230 /* Define to 1 if sig_atomic_t is already defined as volatile. */
231 /* #undef HAVE_SIG_ATOMIC_T_VOLATILE */
233 /* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */
234 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
236 /* Define to 1 if you have the socket function. */
239 /* Define to 1 if you have the <socket.h> header file. */
240 /* #undef HAVE_SOCKET_H */
242 /* Define to 1 if you have the <stdbool.h> header file. */
243 #define HAVE_STDBOOL_H
245 /* Define to 1 if you have the <stdint.h> header file. */
246 #define HAVE_STDINT_H
248 /* Define to 1 if you have the <stdlib.h> header file. */
249 #define HAVE_STDLIB_H
251 /* Define to 1 if you have the strcasecmp function. */
252 #define HAVE_STRCASECMP
254 /* Define to 1 if you have the strcmpi function. */
255 /* #undef HAVE_STRCMPI */
257 /* Define to 1 if you have the strdup function. */
260 /* Define to 1 if you have the stricmp function. */
261 /* #undef HAVE_STRICMP */
263 /* Define to 1 if you have the <strings.h> header file. */
264 #define HAVE_STRINGS_H
266 /* Define to 1 if you have the <string.h> header file. */
267 #define HAVE_STRING_H
269 /* Define to 1 if you have the strncasecmp function. */
270 #define HAVE_STRNCASECMP
272 /* Define to 1 if you have the strncmpi function. */
273 /* #undef HAVE_STRNCMPI */
275 /* Define to 1 if you have the strnicmp function. */
276 /* #undef HAVE_STRNICMP */
278 /* Define to 1 if you have the <stropts.h> header file. */
279 #define HAVE_STROPTS_H
281 /* Define to 1 if you have struct addrinfo. */
282 #define HAVE_STRUCT_ADDRINFO
284 /* Define to 1 if you have struct in6_addr. */
285 #define HAVE_STRUCT_IN6_ADDR
287 /* Define to 1 if you have struct sockaddr_in6. */
288 #define HAVE_STRUCT_SOCKADDR_IN6
290 /* if struct sockaddr_storage is defined */
291 #define HAVE_STRUCT_SOCKADDR_STORAGE
293 /* Define to 1 if you have the timeval struct. */
294 #define HAVE_STRUCT_TIMEVAL
296 /* Define to 1 if you have the <sys/ioctl.h> header file. */
297 #define HAVE_SYS_IOCTL_H
299 /* Define to 1 if you have the <sys/param.h> header file. */
300 #define HAVE_SYS_PARAM_H
302 /* Define to 1 if you have the <sys/select.h> header file. */
303 #define HAVE_SYS_SELECT_H
305 /* Define to 1 if you have the <sys/socket.h> header file. */
306 #define HAVE_SYS_SOCKET_H
308 /* Define to 1 if you have the <sys/stat.h> header file. */
309 #define HAVE_SYS_STAT_H
311 /* Define to 1 if you have the <sys/time.h> header file. */
312 #define HAVE_SYS_TIME_H
314 /* Define to 1 if you have the <sys/types.h> header file. */
315 #define HAVE_SYS_TYPES_H
317 /* Define to 1 if you have the <sys/uio.h> header file. */
318 #define HAVE_SYS_UIO_H
320 /* Define to 1 if you have the <time.h> header file. */
323 /* Define to 1 if you have the <unistd.h> header file. */
324 #define HAVE_UNISTD_H
326 /* Define to 1 if you have the windows.h header file. */
327 /* #undef HAVE_WINDOWS_H */
329 /* Define to 1 if you have the winsock2.h header file. */
330 /* #undef HAVE_WINSOCK2_H */
332 /* Define to 1 if you have the winsock.h header file. */
333 /* #undef HAVE_WINSOCK_H */
335 /* Define to 1 if you have the writev function. */
338 /* Define to 1 if you have the ws2tcpip.h header file. */
339 /* #undef HAVE_WS2TCPIP_H */
341 /* Define if __system_property_get exists. */
342 /* #undef HAVE___SYSTEM_PROPERTY_GET */
344 /* Define to 1 if you need the malloc.h header file even with stdlib.h */
345 /* #undef NEED_MALLOC_H */
347 /* Define to 1 if you need the memory.h header file even with stdlib.h */
348 /* #undef NEED_MEMORY_H */
350 /* a suitable file/device to read random data from */
351 /* #undef RANDOM_FILE */
353 /* Define to the type qualifier pointed by arg 5 for recvfrom. */
354 #define RECVFROM_QUAL_ARG5
356 /* Define to the type of arg 1 for recvfrom. */
357 #define RECVFROM_TYPE_ARG1 int
359 /* Define to the type pointed by arg 2 for recvfrom. */
360 #define RECVFROM_TYPE_ARG2 void *
362 /* Define to 1 if the type pointed by arg 2 for recvfrom is void. */
363 #define RECVFROM_TYPE_ARG2_IS_VOID 0
365 /* Define to the type of arg 3 for recvfrom. */
366 #define RECVFROM_TYPE_ARG3 size_t
368 /* Define to the type of arg 4 for recvfrom. */
369 #define RECVFROM_TYPE_ARG4 int
371 /* Define to the type pointed by arg 5 for recvfrom. */
372 #define RECVFROM_TYPE_ARG5 struct sockaddr *
374 /* Define to 1 if the type pointed by arg 5 for recvfrom is void. */
375 #define RECVFROM_TYPE_ARG5_IS_VOID 0
377 /* Define to the type pointed by arg 6 for recvfrom. */
378 #define RECVFROM_TYPE_ARG6 socklen_t *
380 /* Define to 1 if the type pointed by arg 6 for recvfrom is void. */
381 #define RECVFROM_TYPE_ARG6_IS_VOID 0
383 /* Define to the function return type for recvfrom. */
384 #define RECVFROM_TYPE_RETV ssize_t
386 /* Define to the type of arg 1 for recv. */
387 #define RECV_TYPE_ARG1 int
389 /* Define to the type of arg 2 for recv. */
390 #define RECV_TYPE_ARG2 void *
392 /* Define to the type of arg 3 for recv. */
393 #define RECV_TYPE_ARG3 size_t
395 /* Define to the type of arg 4 for recv. */
396 #define RECV_TYPE_ARG4 int
398 /* Define to the function return type for recv. */
399 #define RECV_TYPE_RETV ssize_t
401 /* Define as the return type of signal handlers (`int' or `void'). */
404 /* Define to the type qualifier of arg 2 for send. */
405 #define SEND_QUAL_ARG2
407 /* Define to the type of arg 1 for send. */
408 #define SEND_TYPE_ARG1 int
410 /* Define to the type of arg 2 for send. */
411 #define SEND_TYPE_ARG2 void *
413 /* Define to the type of arg 3 for send. */
414 #define SEND_TYPE_ARG3 size_t
416 /* Define to the type of arg 4 for send. */
417 #define SEND_TYPE_ARG4 int
419 /* Define to the function return type for send. */
420 #define SEND_TYPE_RETV ssize_t
422 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
423 #define TIME_WITH_SYS_TIME
425 /* Define to disable non-blocking sockets. */
426 #undef USE_BLOCKING_SOCKETS
428 /* Define to avoid automatic inclusion of winsock.h */
429 #undef WIN32_LEAN_AND_MEAN
431 /* Type to use in place of in_addr_t when system does not provide it. */
434 #ifdef GPR_BACKWARDS_COMPATIBILITY_MODE
435 /* IMPORTANT: gRPC MANUAL EDIT HERE!
436 * Redefine the fd_set macros for GLIBC < 2.15 support.
437 * This is a backwards compatibility hack. At version 2.15, GLIBC introduces
438 * the __fdelt_chk function, and starts using it within its fd_set macros
439 * (which c-ares uses). For compatibility with GLIBC < 2.15, we need to redefine
440 * the fd_set macros to not use __fdelt_chk. */
441 #include <sys/select.h>
445 /* 'FD_ZERO' doesn't use __fdelt_chk, no need to redefine. */
448 #define GRPC_CARES_FDS_BITS(set) __FDS_BITS(set)
450 #define GRPC_CARES_FDS_BITS(set) ((set)->fds_bits)
453 #define GRPC_CARES_FD_MASK(d) ((long int)(1UL << (d) % NFDBITS))
455 #define FD_SET(d, set) \
456 ((void) (GRPC_CARES_FDS_BITS (set)[ (d) / NFDBITS ] |= GRPC_CARES_FD_MASK(d)))
457 #define FD_CLR(d, set) \
458 ((void) (GRPC_CARES_FDS_BITS (set)[ (d) / NFDBITS ] &= ~GRPC_CARES_FD_MASK(d)))
459 #define FD_ISSET(d, set) \
460 ((GRPC_CARES_FDS_BITS (set)[ (d) / NFDBITS ] & GRPC_CARES_FD_MASK(d)) != 0)
461 #endif /* GPR_BACKWARDS_COMPATIBILITY_MODE */