1 /* 2 * Copyright (C) 2022-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef ARES_CONFIG_H 17 #define ARES_CONFIG_H 18 19 /* src/lib/ares_config.h. Generated from ares_config.h.in by configure. */ 20 /* src/lib/ares_config.h.in. Generated from configure.ac by autoheader. */ 21 22 /* Define if building universal (internal helper macro) */ 23 /* #undef AC_APPLE_UNIVERSAL_BUILD */ 24 25 /* define this if ares is built for a big endian system */ 26 /* #undef ARES_BIG_ENDIAN */ 27 28 /* Defined for build that exposes internal static functions for testing. */ 29 /* #undef CARES_EXPOSE_STATICS */ 30 31 /* a suitable file/device to read random data from */ 32 #define CARES_RANDOM_FILE "/dev/urandom" 33 34 /* Defined for build with symbol hiding. */ 35 #define CARES_SYMBOL_HIDING 1 36 37 /* Definition to make a library symbol externally visible. */ 38 #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default"))) 39 40 /* the signed version of size_t */ 41 #define CARES_TYPEOF_ARES_SSIZE_T ssize_t 42 43 /* Use resolver library to configure cares */ 44 /* #undef CARES_USE_LIBRESOLV */ 45 46 /* if a /etc/inet dir is being used */ 47 /* #undef ETC_INET */ 48 49 /* Define to the type of arg 2 for gethostname. */ 50 #define GETHOSTNAME_TYPE_ARG2 size_t 51 52 /* Define to the type qualifier of arg 1 for getnameinfo. */ 53 #define GETNAMEINFO_QUAL_ARG1 const 54 55 /* Define to the type of arg 1 for getnameinfo. */ 56 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr * 57 58 /* Define to the type of arg 2 for getnameinfo. */ 59 #define GETNAMEINFO_TYPE_ARG2 socklen_t 60 61 /* Define to the type of args 4 and 6 for getnameinfo. */ 62 #define GETNAMEINFO_TYPE_ARG46 socklen_t 63 64 /* Define to the type of arg 7 for getnameinfo. */ 65 #define GETNAMEINFO_TYPE_ARG7 int 66 67 /* Specifies the number of arguments to getservbyport_r */ 68 #define GETSERVBYPORT_R_ARGS 6 69 70 /* Specifies the size of the buffer to pass to getservbyport_r */ 71 #define GETSERVBYPORT_R_BUFSIZE 4096 72 73 /* Define to 1 if you have AF_INET6. */ 74 #define HAVE_AF_INET6 1 75 76 /* Define to 1 if you have the <arpa/inet.h> header file. */ 77 #define HAVE_ARPA_INET_H 1 78 79 /* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ 80 #define HAVE_ARPA_NAMESER_COMPAT_H 1 81 82 /* Define to 1 if you have the <arpa/nameser.h> header file. */ 83 #define HAVE_ARPA_NAMESER_H 1 84 85 /* Define to 1 if you have the <assert.h> header file. */ 86 #define HAVE_ASSERT_H 1 87 88 /* Define to 1 if you have the `bitncmp' function. */ 89 /* #undef HAVE_BITNCMP */ 90 91 /* Define to 1 if bool is an available type. */ 92 #define HAVE_BOOL_T 1 93 94 /* Define to 1 if you have the clock_gettime function and monotonic timer. */ 95 #define HAVE_CLOCK_GETTIME_MONOTONIC 1 96 97 /* Define to 1 if you have the closesocket function. */ 98 /* #undef HAVE_CLOSESOCKET */ 99 100 /* Define to 1 if you have the CloseSocket camel case function. */ 101 /* #undef HAVE_CLOSESOCKET_CAMEL */ 102 103 /* Define to 1 if you have the connect function. */ 104 #define HAVE_CONNECT 1 105 106 /* define if the compiler supports basic C++11 syntax */ 107 #define HAVE_CXX11 1 108 109 /* Define to 1 if you have the <dlfcn.h> header file. */ 110 #define HAVE_DLFCN_H 1 111 112 /* Define to 1 if you have the <errno.h> header file. */ 113 #define HAVE_ERRNO_H 1 114 115 /* Define to 1 if you have the fcntl function. */ 116 #define HAVE_FCNTL 1 117 118 /* Define to 1 if you have the <fcntl.h> header file. */ 119 #define HAVE_FCNTL_H 1 120 121 /* Define to 1 if you have a working fcntl O_NONBLOCK function. */ 122 #define HAVE_FCNTL_O_NONBLOCK 1 123 124 /* Define to 1 if you have the freeaddrinfo function. */ 125 #define HAVE_FREEADDRINFO 1 126 127 /* Define to 1 if you have a working getaddrinfo function. */ 128 #define HAVE_GETADDRINFO 1 129 130 /* Define to 1 if the getaddrinfo function is threadsafe. */ 131 #define HAVE_GETADDRINFO_THREADSAFE 1 132 133 /* Define to 1 if you have the getenv function. */ 134 #define HAVE_GETENV 1 135 136 /* Define to 1 if you have the gethostbyaddr function. */ 137 #define HAVE_GETHOSTBYADDR 1 138 139 /* Define to 1 if you have the gethostbyname function. */ 140 #define HAVE_GETHOSTBYNAME 1 141 142 /* Define to 1 if you have the gethostname function. */ 143 #define HAVE_GETHOSTNAME 1 144 145 /* Define to 1 if you have the getnameinfo function. */ 146 #define HAVE_GETNAMEINFO 1 147 148 /* Define to 1 if you have the getservbyport_r function. */ 149 #define HAVE_GETSERVBYPORT_R 1 150 151 /* Define to 1 if you have the `gettimeofday' function. */ 152 #define HAVE_GETTIMEOFDAY 1 153 154 /* Define to 1 if you have the `if_indextoname' function. */ 155 #define HAVE_IF_INDEXTONAME 1 156 157 /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */ 158 /* #undef HAVE_INET_NET_PTON */ 159 160 /* Define to 1 if you have a IPv6 capable working inet_ntop function. */ 161 #define HAVE_INET_NTOP 1 162 163 /* Define to 1 if you have a IPv6 capable working inet_pton function. */ 164 #define HAVE_INET_PTON 1 165 166 /* Define to 1 if you have the <inttypes.h> header file. */ 167 #define HAVE_INTTYPES_H 1 168 169 /* Define to 1 if you have the ioctl function. */ 170 #define HAVE_IOCTL 1 171 172 /* Define to 1 if you have the ioctlsocket function. */ 173 /* #undef HAVE_IOCTLSOCKET */ 174 175 /* Define to 1 if you have the IoctlSocket camel case function. */ 176 /* #undef HAVE_IOCTLSOCKET_CAMEL */ 177 178 /* Define to 1 if you have a working IoctlSocket camel case FIONBIO function. 179 */ 180 /* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ 181 182 /* Define to 1 if you have a working ioctlsocket FIONBIO function. */ 183 /* #undef HAVE_IOCTLSOCKET_FIONBIO */ 184 185 /* Define to 1 if you have a working ioctl FIONBIO function. */ 186 #define HAVE_IOCTL_FIONBIO 1 187 188 /* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ 189 #define HAVE_IOCTL_SIOCGIFADDR 1 190 191 /* Define to 1 if you have the `resolve' library (-lresolve). */ 192 /* #undef HAVE_LIBRESOLVE */ 193 194 /* Define to 1 if you have the <limits.h> header file. */ 195 #define HAVE_LIMITS_H 1 196 197 /* if your compiler supports LL */ 198 #define HAVE_LL 1 199 200 /* Define to 1 if the compiler supports the 'long long' data type. */ 201 #define HAVE_LONGLONG 1 202 203 /* Define to 1 if you have the malloc.h header file. */ 204 #define HAVE_MALLOC_H 1 205 206 /* Define to 1 if you have the memory.h header file. */ 207 #define HAVE_MEMORY_H 1 208 209 /* Define to 1 if you have the MSG_NOSIGNAL flag. */ 210 #define HAVE_MSG_NOSIGNAL 1 211 212 /* Define to 1 if you have the <netdb.h> header file. */ 213 #define HAVE_NETDB_H 1 214 215 /* Define to 1 if you have the <netinet/in.h> header file. */ 216 #define HAVE_NETINET_IN_H 1 217 218 /* Define to 1 if you have the <netinet/tcp.h> header file. */ 219 #define HAVE_NETINET_TCP_H 1 220 221 /* Define to 1 if you have the <net/if.h> header file. */ 222 #define HAVE_NET_IF_H 1 223 224 /* Define to 1 if you have PF_INET6. */ 225 #define HAVE_PF_INET6 1 226 227 /* Define to 1 if you have the recv function. */ 228 #define HAVE_RECV 1 229 230 /* Define to 1 if you have the recvfrom function. */ 231 #define HAVE_RECVFROM 1 232 233 /* Define to 1 if you have the send function. */ 234 #define HAVE_SEND 1 235 236 /* Define to 1 if you have the setsockopt function. */ 237 #define HAVE_SETSOCKOPT 1 238 239 /* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ 240 /* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ 241 242 /* Define to 1 if you have the <signal.h> header file. */ 243 #define HAVE_SIGNAL_H 1 244 245 /* Define to 1 if sig_atomic_t is an available typedef. */ 246 #define HAVE_SIG_ATOMIC_T 1 247 248 /* Define to 1 if sig_atomic_t is already defined as volatile. */ 249 /* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ 250 251 /* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ 252 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 253 254 /* Define to 1 if you have the socket function. */ 255 #define HAVE_SOCKET 1 256 257 /* Define to 1 if you have the <socket.h> header file. */ 258 /* #undef HAVE_SOCKET_H */ 259 260 /* Define to 1 if you have the <stdbool.h> header file. */ 261 #define HAVE_STDBOOL_H 1 262 263 /* Define to 1 if you have the <stdint.h> header file. */ 264 #define HAVE_STDINT_H 1 265 266 /* Define to 1 if you have the <stdlib.h> header file. */ 267 #define HAVE_STDLIB_H 1 268 269 /* Define to 1 if you have the strcasecmp function. */ 270 #define HAVE_STRCASECMP 1 271 272 /* Define to 1 if you have the strcmpi function. */ 273 /* #undef HAVE_STRCMPI */ 274 275 /* Define to 1 if you have the strdup function. */ 276 #define HAVE_STRDUP 1 277 278 /* Define to 1 if you have the stricmp function. */ 279 /* #undef HAVE_STRICMP */ 280 281 /* Define to 1 if you have the <strings.h> header file. */ 282 #define HAVE_STRINGS_H 1 283 284 /* Define to 1 if you have the <string.h> header file. */ 285 #define HAVE_STRING_H 1 286 287 /* Define to 1 if you have the strncasecmp function. */ 288 #define HAVE_STRNCASECMP 1 289 290 /* Define to 1 if you have the strncmpi function. */ 291 /* #undef HAVE_STRNCMPI */ 292 293 /* Define to 1 if you have the strnicmp function. */ 294 /* #undef HAVE_STRNICMP */ 295 296 /* Define to 1 if you have the <stropts.h> header file. */ 297 /* #undef HAVE_STROPTS_H */ 298 299 /* Define to 1 if you have struct addrinfo. */ 300 #define HAVE_STRUCT_ADDRINFO 1 301 302 /* Define to 1 if you have struct in6_addr. */ 303 #define HAVE_STRUCT_IN6_ADDR 1 304 305 /* Define to 1 if you have struct sockaddr_in6. */ 306 #define HAVE_STRUCT_SOCKADDR_IN6 1 307 308 /* if struct sockaddr_storage is defined */ 309 #define HAVE_STRUCT_SOCKADDR_STORAGE 1 310 311 /* Define to 1 if you have the timeval struct. */ 312 #define HAVE_STRUCT_TIMEVAL 1 313 314 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 315 #define HAVE_SYS_IOCTL_H 1 316 317 /* Define to 1 if you have the <sys/param.h> header file. */ 318 #define HAVE_SYS_PARAM_H 1 319 320 /* Define to 1 if you have the <sys/select.h> header file. */ 321 #define HAVE_SYS_SELECT_H 1 322 323 /* Define to 1 if you have the <sys/socket.h> header file. */ 324 #define HAVE_SYS_SOCKET_H 1 325 326 /* Define to 1 if you have the <sys/stat.h> header file. */ 327 #define HAVE_SYS_STAT_H 1 328 329 /* Define to 1 if you have the <sys/time.h> header file. */ 330 #define HAVE_SYS_TIME_H 1 331 332 /* Define to 1 if you have the <sys/types.h> header file. */ 333 #define HAVE_SYS_TYPES_H 1 334 335 /* Define to 1 if you have the <sys/uio.h> header file. */ 336 #define HAVE_SYS_UIO_H 1 337 338 /* Define to 1 if you have the <time.h> header file. */ 339 #define HAVE_TIME_H 1 340 341 /* Define to 1 if you have the <unistd.h> header file. */ 342 #define HAVE_UNISTD_H 1 343 344 /* Define to 1 if you have the windows.h header file. */ 345 /* #undef HAVE_WINDOWS_H */ 346 347 /* Define to 1 if you have the winsock2.h header file. */ 348 /* #undef HAVE_WINSOCK2_H */ 349 350 /* Define to 1 if you have the winsock.h header file. */ 351 /* #undef HAVE_WINSOCK_H */ 352 353 /* Define to 1 if you have the writev function. */ 354 #define HAVE_WRITEV 1 355 356 /* Define to 1 if you have the ws2tcpip.h header file. */ 357 /* #undef HAVE_WS2TCPIP_H */ 358 359 /* Define if __system_property_get exists. */ 360 /* #undef HAVE___SYSTEM_PROPERTY_GET */ 361 362 /* Define to the sub-directory where libtool stores uninstalled libraries. */ 363 #define LT_OBJDIR ".libs/" 364 365 /* Define to 1 if you need the malloc.h header file even with stdlib.h */ 366 /* #undef NEED_MALLOC_H */ 367 368 /* Define to 1 if you need the memory.h header file even with stdlib.h */ 369 /* #undef NEED_MEMORY_H */ 370 371 /* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ 372 /* #undef NEED_REENTRANT */ 373 374 /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ 375 /* #undef NEED_THREAD_SAFE */ 376 377 /* cpu-machine-OS */ 378 #define OS "x86_64-pc-linux-gnu" 379 380 /* Name of package */ 381 #define PACKAGE "c-ares" 382 383 /* Define to the address where bug reports for this package should be sent. */ 384 #define PACKAGE_BUGREPORT "c-ares mailing list: http://lists.haxx.se/listinfo/c-ares" 385 386 /* Define to the full name of this package. */ 387 #define PACKAGE_NAME "c-ares" 388 389 /* Define to the full name and version of this package. */ 390 #define PACKAGE_STRING "c-ares 1.18.1" 391 392 /* Define to the one symbol short name of this package. */ 393 #define PACKAGE_TARNAME "c-ares" 394 395 /* Define to the home page for this package. */ 396 #define PACKAGE_URL "" 397 398 /* Define to the version of this package. */ 399 #define PACKAGE_VERSION "1.18.1" 400 401 /* Define to the type qualifier pointed by arg 5 for recvfrom. */ 402 #define RECVFROM_QUAL_ARG5 403 404 /* Define to the type of arg 1 for recvfrom. */ 405 #define RECVFROM_TYPE_ARG1 int 406 407 /* Define to the type pointed by arg 2 for recvfrom. */ 408 #define RECVFROM_TYPE_ARG2 void 409 410 /* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ 411 #define RECVFROM_TYPE_ARG2_IS_VOID 1 412 413 /* Define to the type of arg 3 for recvfrom. */ 414 #define RECVFROM_TYPE_ARG3 size_t 415 416 /* Define to the type of arg 4 for recvfrom. */ 417 #define RECVFROM_TYPE_ARG4 int 418 419 /* Define to the type pointed by arg 5 for recvfrom. */ 420 #define RECVFROM_TYPE_ARG5 struct sockaddr 421 422 /* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ 423 /* #undef RECVFROM_TYPE_ARG5_IS_VOID */ 424 425 /* Define to the type pointed by arg 6 for recvfrom. */ 426 #define RECVFROM_TYPE_ARG6 socklen_t 427 428 /* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ 429 /* #undef RECVFROM_TYPE_ARG6_IS_VOID */ 430 431 /* Define to the function return type for recvfrom. */ 432 #define RECVFROM_TYPE_RETV ssize_t 433 434 /* Define to the type of arg 1 for recv. */ 435 #define RECV_TYPE_ARG1 int 436 437 /* Define to the type of arg 2 for recv. */ 438 #define RECV_TYPE_ARG2 void * 439 440 /* Define to the type of arg 3 for recv. */ 441 #define RECV_TYPE_ARG3 size_t 442 443 /* Define to the type of arg 4 for recv. */ 444 #define RECV_TYPE_ARG4 int 445 446 /* Define to the function return type for recv. */ 447 #define RECV_TYPE_RETV ssize_t 448 449 /* Define as the return type of signal handlers (`int' or `void'). */ 450 #define RETSIGTYPE void 451 452 /* Define to the type qualifier of arg 2 for send. */ 453 #define SEND_QUAL_ARG2 const 454 455 /* Define to the type of arg 1 for send. */ 456 #define SEND_TYPE_ARG1 int 457 458 /* Define to the type of arg 2 for send. */ 459 #define SEND_TYPE_ARG2 void * 460 461 /* Define to the type of arg 3 for send. */ 462 #define SEND_TYPE_ARG3 size_t 463 464 /* Define to the type of arg 4 for send. */ 465 #define SEND_TYPE_ARG4 int 466 467 /* Define to the function return type for send. */ 468 #define SEND_TYPE_RETV ssize_t 469 470 /* Define to 1 if you have the ANSI C header files. */ 471 #define STDC_HEADERS 1 472 473 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. This 474 macro is obsolete. */ 475 #define TIME_WITH_SYS_TIME 1 476 477 /* Define to disable non-blocking sockets. */ 478 /* #undef USE_BLOCKING_SOCKETS */ 479 480 /* Version number of package */ 481 #define VERSION "1.18.1" 482 483 /* Define to avoid automatic inclusion of winsock.h */ 484 /* #undef WIN32_LEAN_AND_MEAN */ 485 486 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 487 significant byte first (like Motorola and SPARC, unlike Intel). */ 488 #if defined AC_APPLE_UNIVERSAL_BUILD 489 # if defined __BIG_ENDIAN__ 490 # define WORDS_BIGENDIAN 1 491 # endif 492 #else 493 # ifndef WORDS_BIGENDIAN 494 /* # undef WORDS_BIGENDIAN */ 495 # endif 496 #endif 497 498 /* Define to 1 if OS is AIX. */ 499 #ifndef _ALL_SOURCE 500 /* # undef _ALL_SOURCE */ 501 #endif 502 503 /* Enable large inode numbers on Mac OS X 10.5. */ 504 #ifndef _DARWIN_USE_64_BIT_INODE 505 # define _DARWIN_USE_64_BIT_INODE 1 506 #endif 507 508 /* Number of bits in a file offset, on hosts where this is settable. */ 509 /* #undef _FILE_OFFSET_BITS */ 510 511 /* Define for large files, on AIX-style hosts. */ 512 /* #undef _LARGE_FILES */ 513 514 /* Define to empty if `const' does not conform to ANSI C. */ 515 /* #undef const */ 516 517 /* Type to use in place of in_addr_t when system does not provide it. */ 518 /* #undef in_addr_t */ 519 520 /* Define to `unsigned int' if <sys/types.h> does not define. */ 521 /* #undef size_t */ 522 523 #endif /* ARES_CONFIG_H */ 524