• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated from ares_config.h.cmake*/
2 
3 /* Define if building universal (internal helper macro) */
4 #undef AC_APPLE_UNIVERSAL_BUILD
5 
6 /* define this if ares is built for a big endian system */
7 #undef ARES_BIG_ENDIAN
8 
9 /* when building as static part of libcurl */
10 #undef BUILDING_LIBCURL
11 
12 /* Defined for build that exposes internal static functions for testing. */
13 #undef CARES_EXPOSE_STATICS
14 
15 /* Defined for build with symbol hiding. */
16 #undef CARES_SYMBOL_HIDING
17 
18 /* Definition to make a library symbol externally visible. */
19 #undef CARES_SYMBOL_SCOPE_EXTERN
20 
21 /* Use resolver library to configure cares */
22 /* #undef CARES_USE_LIBRESOLV */
23 
24 /* if a /etc/inet dir is being used */
25 #undef ETC_INET
26 
27 /* Define to the type of arg 2 for gethostname. */
28 #define GETHOSTNAME_TYPE_ARG2 size_t
29 
30 /* Define to the type qualifier of arg 1 for getnameinfo. */
31 #define GETNAMEINFO_QUAL_ARG1
32 
33 /* Define to the type of arg 1 for getnameinfo. */
34 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
35 
36 /* Define to the type of arg 2 for getnameinfo. */
37 #define GETNAMEINFO_TYPE_ARG2 socklen_t
38 
39 /* Define to the type of args 4 and 6 for getnameinfo. */
40 #define GETNAMEINFO_TYPE_ARG46 socklen_t
41 
42 /* Define to the type of arg 7 for getnameinfo. */
43 #define GETNAMEINFO_TYPE_ARG7 int
44 
45 /* Specifies the number of arguments to getservbyport_r */
46 #define GETSERVBYPORT_R_ARGS
47 
48 /* Define to 1 if you have AF_INET6. */
49 #define HAVE_AF_INET6
50 
51 /* Define to 1 if you have the <arpa/inet.h> header file. */
52 #define HAVE_ARPA_INET_H
53 
54 /* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
55 #define HAVE_ARPA_NAMESER_COMPAT_H
56 
57 /* Define to 1 if you have the <arpa/nameser.h> header file. */
58 #define HAVE_ARPA_NAMESER_H
59 
60 /* Define to 1 if you have the <assert.h> header file. */
61 #define HAVE_ASSERT_H
62 
63 /* Define to 1 if you have the `bitncmp' function. */
64 /* #undef HAVE_BITNCMP */
65 
66 /* Define to 1 if bool is an available type. */
67 #define HAVE_BOOL_T
68 
69 /* Define HAVE_CLOCK_GETTIME_MONOTONIC if you have the clock_gettime
70  * function and monotonic timer.
71  *
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
77 #endif
78 
79 /* Define to 1 if you have the closesocket function. */
80 /* #undef HAVE_CLOSESOCKET */
81 
82 /* Define to 1 if you have the CloseSocket camel case function. */
83 /* #undef HAVE_CLOSESOCKET_CAMEL */
84 
85 /* Define to 1 if you have the connect function. */
86 #define HAVE_CONNECT
87 
88 /* define if the compiler supports basic C++11 syntax */
89 /* #undef HAVE_CXX11 */
90 
91 /* Define to 1 if you have the <dlfcn.h> header file. */
92 #define HAVE_DLFCN_H
93 
94 /* Define to 1 if you have the <errno.h> header file. */
95 #define HAVE_ERRNO_H
96 
97 /* Define to 1 if you have the fcntl function. */
98 #define HAVE_FCNTL
99 
100 /* Define to 1 if you have the <fcntl.h> header file. */
101 #define HAVE_FCNTL_H
102 
103 /* Define to 1 if you have a working fcntl O_NONBLOCK function. */
104 #define HAVE_FCNTL_O_NONBLOCK
105 
106 /* Define to 1 if you have the freeaddrinfo function. */
107 #define HAVE_FREEADDRINFO
108 
109 /* Define to 1 if you have a working getaddrinfo function. */
110 #define HAVE_GETADDRINFO
111 
112 /* Define to 1 if the getaddrinfo function is threadsafe. */
113 /* #undef HAVE_GETADDRINFO_THREADSAFE */
114 
115 /* Define to 1 if you have the getenv function. */
116 #define HAVE_GETENV
117 
118 /* Define to 1 if you have the gethostbyaddr function. */
119 #define HAVE_GETHOSTBYADDR
120 
121 /* Define to 1 if you have the gethostbyname function. */
122 #define HAVE_GETHOSTBYNAME
123 
124 /* Define to 1 if you have the gethostname function. */
125 #define HAVE_GETHOSTNAME
126 
127 /* Define to 1 if you have the getnameinfo function. */
128 #define HAVE_GETNAMEINFO
129 
130 /* Define to 1 if you have the getservbyport_r function. */
131 /* #undef HAVE_GETSERVBYPORT_R */
132 
133 /* Define to 1 if you have the `gettimeofday' function. */
134 #define HAVE_GETTIMEOFDAY
135 
136 /* Define to 1 if you have the `if_indextoname' function. */
137 #define HAVE_IF_INDEXTONAME
138 
139 /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
140 /* #undef HAVE_INET_NET_PTON */
141 
142 /* Define to 1 if you have a IPv6 capable working inet_ntop function. */
143 #define HAVE_INET_NTOP
144 
145 /* Define to 1 if you have a IPv6 capable working inet_pton function. */
146 #define HAVE_INET_PTON
147 
148 /* Define to 1 if you have the <inttypes.h> header file. */
149 #define HAVE_INTTYPES_H
150 
151 /* Define to 1 if you have the ioctl function. */
152 #define HAVE_IOCTL
153 
154 /* Define to 1 if you have the ioctlsocket function. */
155 /* #undef HAVE_IOCTLSOCKET */
156 
157 /* Define to 1 if you have the IoctlSocket camel case function. */
158 /* #undef HAVE_IOCTLSOCKET_CAMEL */
159 
160 /* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
161    */
162 /* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */
163 
164 /* Define to 1 if you have a working ioctlsocket FIONBIO function. */
165 /* #undef HAVE_IOCTLSOCKET_FIONBIO */
166 
167 /* Define to 1 if you have a working ioctl FIONBIO function. */
168 #define HAVE_IOCTL_FIONBIO
169 
170 /* Define to 1 if you have a working ioctl SIOCGIFADDR function. */
171 #define HAVE_IOCTL_SIOCGIFADDR
172 
173 /* Define to 1 if you have the `resolve' library (-lresolve). */
174 /* #undef HAVE_LIBRESOLV */
175 
176 /* Define to 1 if you have the <limits.h> header file. */
177 #define HAVE_LIMITS_H
178 
179 /* if your compiler supports LL */
180 #define HAVE_LL
181 
182 /* Define to 1 if the compiler supports the 'long long' data type. */
183 #define HAVE_LONGLONG
184 
185 /* Define to 1 if you have the malloc.h header file. */
186 #define HAVE_MALLOC_H
187 
188 /* Define to 1 if you have the memory.h header file. */
189 #define HAVE_MEMORY_H
190 
191 /* Define to 1 if you have the MSG_NOSIGNAL flag. */
192 #define HAVE_MSG_NOSIGNAL
193 
194 /* Define to 1 if you have the <netdb.h> header file. */
195 #define HAVE_NETDB_H
196 
197 /* Define to 1 if you have the <netinet/in.h> header file. */
198 #define HAVE_NETINET_IN_H
199 
200 /* Define to 1 if you have the <netinet/tcp.h> header file. */
201 #define HAVE_NETINET_TCP_H
202 
203 /* Define to 1 if you have the <net/if.h> header file. */
204 #define HAVE_NET_IF_H
205 
206 /* Define to 1 if you have PF_INET6. */
207 #define HAVE_PF_INET6
208 
209 /* Define to 1 if you have the recv function. */
210 #define HAVE_RECV
211 
212 /* Define to 1 if you have the recvfrom function. */
213 #define HAVE_RECVFROM
214 
215 /* Define to 1 if you have the send function. */
216 #define HAVE_SEND
217 
218 /* Define to 1 if you have the setsockopt function. */
219 #define HAVE_SETSOCKOPT
220 
221 /* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */
222 /* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */
223 
224 /* Define to 1 if you have the <signal.h> header file. */
225 #define HAVE_SIGNAL_H
226 
227 /* Define to 1 if sig_atomic_t is an available typedef. */
228 #define HAVE_SIG_ATOMIC_T
229 
230 /* Define to 1 if sig_atomic_t is already defined as volatile. */
231 /* #undef HAVE_SIG_ATOMIC_T_VOLATILE */
232 
233 /* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */
234 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
235 
236 /* Define to 1 if you have the socket function. */
237 #define HAVE_SOCKET
238 
239 /* Define to 1 if you have the <socket.h> header file. */
240 /* #undef HAVE_SOCKET_H */
241 
242 /* Define to 1 if you have the <stdbool.h> header file. */
243 #define HAVE_STDBOOL_H
244 
245 /* Define to 1 if you have the <stdint.h> header file. */
246 #define HAVE_STDINT_H
247 
248 /* Define to 1 if you have the <stdlib.h> header file. */
249 #define HAVE_STDLIB_H
250 
251 /* Define to 1 if you have the strcasecmp function. */
252 #define HAVE_STRCASECMP
253 
254 /* Define to 1 if you have the strcmpi function. */
255 /* #undef HAVE_STRCMPI */
256 
257 /* Define to 1 if you have the strdup function. */
258 #define HAVE_STRDUP
259 
260 /* Define to 1 if you have the stricmp function. */
261 /* #undef HAVE_STRICMP */
262 
263 /* Define to 1 if you have the <strings.h> header file. */
264 #define HAVE_STRINGS_H
265 
266 /* Define to 1 if you have the <string.h> header file. */
267 #define HAVE_STRING_H
268 
269 /* Define to 1 if you have the strncasecmp function. */
270 #define HAVE_STRNCASECMP
271 
272 /* Define to 1 if you have the strncmpi function. */
273 /* #undef HAVE_STRNCMPI */
274 
275 /* Define to 1 if you have the strnicmp function. */
276 /* #undef HAVE_STRNICMP */
277 
278 /* Define to 1 if you have the <stropts.h> header file. */
279 #define HAVE_STROPTS_H
280 
281 /* Define to 1 if you have struct addrinfo. */
282 #define HAVE_STRUCT_ADDRINFO
283 
284 /* Define to 1 if you have struct in6_addr. */
285 #define HAVE_STRUCT_IN6_ADDR
286 
287 /* Define to 1 if you have struct sockaddr_in6. */
288 #define HAVE_STRUCT_SOCKADDR_IN6
289 
290 /* if struct sockaddr_storage is defined */
291 #define HAVE_STRUCT_SOCKADDR_STORAGE
292 
293 /* Define to 1 if you have the timeval struct. */
294 #define HAVE_STRUCT_TIMEVAL
295 
296 /* Define to 1 if you have the <sys/ioctl.h> header file. */
297 #define HAVE_SYS_IOCTL_H
298 
299 /* Define to 1 if you have the <sys/param.h> header file. */
300 #define HAVE_SYS_PARAM_H
301 
302 /* Define to 1 if you have the <sys/select.h> header file. */
303 #define HAVE_SYS_SELECT_H
304 
305 /* Define to 1 if you have the <sys/socket.h> header file. */
306 #define HAVE_SYS_SOCKET_H
307 
308 /* Define to 1 if you have the <sys/stat.h> header file. */
309 #define HAVE_SYS_STAT_H
310 
311 /* Define to 1 if you have the <sys/time.h> header file. */
312 #define HAVE_SYS_TIME_H
313 
314 /* Define to 1 if you have the <sys/types.h> header file. */
315 #define HAVE_SYS_TYPES_H
316 
317 /* Define to 1 if you have the <sys/uio.h> header file. */
318 #define HAVE_SYS_UIO_H
319 
320 /* Define to 1 if you have the <time.h> header file. */
321 #define HAVE_TIME_H
322 
323 /* Define to 1 if you have the <unistd.h> header file. */
324 #define HAVE_UNISTD_H
325 
326 /* Define to 1 if you have the windows.h header file. */
327 /* #undef HAVE_WINDOWS_H */
328 
329 /* Define to 1 if you have the winsock2.h header file. */
330 /* #undef HAVE_WINSOCK2_H */
331 
332 /* Define to 1 if you have the winsock.h header file. */
333 /* #undef HAVE_WINSOCK_H */
334 
335 /* Define to 1 if you have the writev function. */
336 #define HAVE_WRITEV
337 
338 /* Define to 1 if you have the ws2tcpip.h header file. */
339 /* #undef HAVE_WS2TCPIP_H */
340 
341 /* Define to 1 if you need the malloc.h header file even with stdlib.h */
342 /* #undef NEED_MALLOC_H */
343 
344 /* Define to 1 if you need the memory.h header file even with stdlib.h */
345 /* #undef NEED_MEMORY_H */
346 
347 /* a suitable file/device to read random data from */
348 /* #undef RANDOM_FILE */
349 
350 /* Define to the type qualifier pointed by arg 5 for recvfrom. */
351 #define RECVFROM_QUAL_ARG5
352 
353 /* Define to the type of arg 1 for recvfrom. */
354 #define RECVFROM_TYPE_ARG1 int
355 
356 /* Define to the type pointed by arg 2 for recvfrom. */
357 #define RECVFROM_TYPE_ARG2 void *
358 
359 /* Define to 1 if the type pointed by arg 2 for recvfrom is void. */
360 #define RECVFROM_TYPE_ARG2_IS_VOID 0
361 
362 /* Define to the type of arg 3 for recvfrom. */
363 #define RECVFROM_TYPE_ARG3 size_t
364 
365 /* Define to the type of arg 4 for recvfrom. */
366 #define RECVFROM_TYPE_ARG4 int
367 
368 /* Define to the type pointed by arg 5 for recvfrom. */
369 #define RECVFROM_TYPE_ARG5 struct sockaddr *
370 
371 /* Define to 1 if the type pointed by arg 5 for recvfrom is void. */
372 #define RECVFROM_TYPE_ARG5_IS_VOID 0
373 
374 /* Define to the type pointed by arg 6 for recvfrom. */
375 #define RECVFROM_TYPE_ARG6 socklen_t *
376 
377 /* Define to 1 if the type pointed by arg 6 for recvfrom is void. */
378 #define RECVFROM_TYPE_ARG6_IS_VOID 0
379 
380 /* Define to the function return type for recvfrom. */
381 #define RECVFROM_TYPE_RETV ssize_t
382 
383 /* Define to the type of arg 1 for recv. */
384 #define RECV_TYPE_ARG1 int
385 
386 /* Define to the type of arg 2 for recv. */
387 #define RECV_TYPE_ARG2 void *
388 
389 /* Define to the type of arg 3 for recv. */
390 #define RECV_TYPE_ARG3 size_t
391 
392 /* Define to the type of arg 4 for recv. */
393 #define RECV_TYPE_ARG4 int
394 
395 /* Define to the function return type for recv. */
396 #define RECV_TYPE_RETV ssize_t
397 
398 /* Define as the return type of signal handlers (`int' or `void'). */
399 #define RETSIGTYPE
400 
401 /* Define to the type qualifier of arg 2 for send. */
402 #define SEND_QUAL_ARG2
403 
404 /* Define to the type of arg 1 for send. */
405 #define SEND_TYPE_ARG1 int
406 
407 /* Define to the type of arg 2 for send. */
408 #define SEND_TYPE_ARG2 void *
409 
410 /* Define to the type of arg 3 for send. */
411 #define SEND_TYPE_ARG3 size_t
412 
413 /* Define to the type of arg 4 for send. */
414 #define SEND_TYPE_ARG4 int
415 
416 /* Define to the function return type for send. */
417 #define SEND_TYPE_RETV ssize_t
418 
419 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
420 #define TIME_WITH_SYS_TIME
421 
422 /* Define to disable non-blocking sockets. */
423 #undef USE_BLOCKING_SOCKETS
424 
425 /* Define to avoid automatic inclusion of winsock.h */
426 #undef WIN32_LEAN_AND_MEAN
427 
428 /* Type to use in place of in_addr_t when system does not provide it. */
429 #undef in_addr_t
430 
431 #ifdef GPR_BACKWARDS_COMPATIBILITY_MODE
432   /* IMPORTANT: gRPC MANUAL EDIT HERE!
433    * Redefine the fd_set macros for GLIBC < 2.15 support.
434    * This is a backwards compatibility hack. At version 2.15, GLIBC introduces
435    * the __fdelt_chk function, and starts using it within its fd_set macros
436    * (which c-ares uses). For compatibility with GLIBC < 2.15, we need to redefine
437    * the fd_set macros to not use __fdelt_chk. */
438   #include <sys/select.h>
439   #undef FD_SET
440   #undef FD_CLR
441   #undef FD_ISSET
442   /* 'FD_ZERO' doesn't use __fdelt_chk, no need to redefine. */
443 
444   #ifdef __FDS_BITS
445     #define GRPC_CARES_FDS_BITS(set) __FDS_BITS(set)
446   #else
447     #define GRPC_CARES_FDS_BITS(set) ((set)->fds_bits)
448   #endif
449 
450   #define GRPC_CARES_FD_MASK(d) ((long int)(1UL << (d) % NFDBITS))
451 
452   #define FD_SET(d, set) \
453       ((void) (GRPC_CARES_FDS_BITS (set)[ (d) / NFDBITS ] |= GRPC_CARES_FD_MASK(d)))
454   #define FD_CLR(d, set) \
455       ((void) (GRPC_CARES_FDS_BITS (set)[ (d) / NFDBITS ] &= ~GRPC_CARES_FD_MASK(d)))
456   #define FD_ISSET(d, set) \
457       ((GRPC_CARES_FDS_BITS (set)[ (d) / NFDBITS ] & GRPC_CARES_FD_MASK(d)) != 0)
458 #endif /* GPR_BACKWARDS_COMPATIBILITY_MODE */
459