ares_config.h 13 KB

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