1/* config.h.in. Generated from configure.ac by autoheader. */ 2 3/* apply the noreturn attribute to a function that exits the program */ 4#undef ATTR_NORETURN 5 6/* apply the weak attribute to a symbol */ 7#undef ATTR_WEAK 8 9/* Define this to enable BIND8 like NSTATS & XSTATS. */ 10#undef BIND8_STATS 11 12/* NSD default chroot directory */ 13#undef CHROOTDIR 14 15/* Command line arguments used with configure */ 16#undef CONFCMDLINE 17 18/* NSD config dir */ 19#undef CONFIGDIR 20 21/* Pathname to the NSD configuration file */ 22#undef CONFIGFILE 23 24/* number of arguments for CPU_OR is three */ 25#undef CPU_OR_THREE_ARGS 26 27/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 28 */ 29#undef DARWIN_BROKEN_SETREUID 30 31/* Whether ERR_load_SSL_strings is deprecated */ 32#undef DEPRECATED_ERR_LOAD_SSL_STRINGS 33 34/* Whether SHA1_Init is deprecated */ 35#undef DEPRECATED_SHA1_INIT 36 37/* default dnstap socket path */ 38#undef DNSTAP_SOCKET_PATH 39 40/* Define to the default maximum message length with EDNS. */ 41#undef EDNS_MAX_MESSAGE_LEN 42 43/* Define to the default facility for syslog. */ 44#undef FACILITY 45 46/* Define to 1 if you have the `accept4' function. */ 47#undef HAVE_ACCEPT4 48 49/* Define to 1 if you have the `alarm' function. */ 50#undef HAVE_ALARM 51 52/* Define to 1 if you have the `arc4random' function. */ 53#undef HAVE_ARC4RANDOM 54 55/* Define to 1 if you have the `arc4random_uniform' function. */ 56#undef HAVE_ARC4RANDOM_UNIFORM 57 58/* Define to 1 if you have the <arpa/inet.h> header file. */ 59#undef HAVE_ARPA_INET_H 60 61/* Whether the C compiler accepts the "format" attribute */ 62#undef HAVE_ATTR_FORMAT 63 64/* Whether the C compiler accepts the "noreturn" attribute */ 65#undef HAVE_ATTR_NORETURN 66 67/* Whether the C compiler accepts the "unused" attribute */ 68#undef HAVE_ATTR_UNUSED 69 70/* Whether the C compiler accepts the "weak" attribute */ 71#undef HAVE_ATTR_WEAK 72 73/* Define to 1 if you have the `b64_ntop' function. */ 74#undef HAVE_B64_NTOP 75 76/* Define to 1 if you have the `b64_pton' function. */ 77#undef HAVE_B64_PTON 78 79/* Define to 1 if you have the `basename' function. */ 80#undef HAVE_BASENAME 81 82/* Define to 1 if your system has a working `chown' function. */ 83#undef HAVE_CHOWN 84 85/* Define to 1 if you have the `chroot' function. */ 86#undef HAVE_CHROOT 87 88/* Define to 1 if you have the `clock_gettime' function. */ 89#undef HAVE_CLOCK_GETTIME 90 91/* Define to 1 if the system has the type `cpuid_t'. */ 92#undef HAVE_CPUID_T 93 94/* Define to 1 if the system has the type `cpuset_t'. */ 95#undef HAVE_CPUSET_T 96 97/* Define to 1 if the system has the type `cpu_set_t'. */ 98#undef HAVE_CPU_SET_T 99 100/* Define to 1 if you have the `CRYPTO_memcmp' function. */ 101#undef HAVE_CRYPTO_MEMCMP 102 103/* if time.h provides ctime_r prototype */ 104#undef HAVE_CTIME_R_PROTO 105 106/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 107 don't. */ 108#undef HAVE_DECL_REALLOCARRAY 109 110/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 111 0 if you don't. */ 112#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 113 114/* Define to 1 if you have the declaration of `SSL_CTX_set_tmp_ecdh', and to 0 115 if you don't. */ 116#undef HAVE_DECL_SSL_CTX_SET_TMP_ECDH 117 118/* Define to 1 if you have the `dup2' function. */ 119#undef HAVE_DUP2 120 121/* Define to 1 if you have the `EC_KEY_new_by_curve_name' function. */ 122#undef HAVE_EC_KEY_NEW_BY_CURVE_NAME 123 124/* Define to 1 if you have the <endian.h> header file. */ 125#undef HAVE_ENDIAN_H 126 127/* Define to 1 if you have the `endpwent' function. */ 128#undef HAVE_ENDPWENT 129 130/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 131#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 132 133/* Define to 1 if you have the `ERR_load_SSL_strings' function. */ 134#undef HAVE_ERR_LOAD_SSL_STRINGS 135 136/* Define to 1 if you have the `event_base_free' function. */ 137#undef HAVE_EVENT_BASE_FREE 138 139/* Define to 1 if you have the `event_base_get_method' function. */ 140#undef HAVE_EVENT_BASE_GET_METHOD 141 142/* Define to 1 if you have the `event_base_new' function. */ 143#undef HAVE_EVENT_BASE_NEW 144 145/* Define to 1 if you have the `event_base_once' function. */ 146#undef HAVE_EVENT_BASE_ONCE 147 148/* Define to 1 if you have the <event.h> header file. */ 149#undef HAVE_EVENT_H 150 151/* Define to 1 if you have the `EVP_cleanup' function. */ 152#undef HAVE_EVP_CLEANUP 153 154/* Define to 1 if you have the `EVP_MAC_CTX_get_mac_size' function. */ 155#undef HAVE_EVP_MAC_CTX_GET_MAC_SIZE 156 157/* Define to 1 if you have the `EVP_MAC_CTX_new' function. */ 158#undef HAVE_EVP_MAC_CTX_NEW 159 160/* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */ 161#undef HAVE_EVP_MAC_CTX_SET_PARAMS 162 163/* Define to 1 if you have the `ev_default_loop' function. */ 164#undef HAVE_EV_DEFAULT_LOOP 165 166/* Define to 1 if you have the `ev_loop' function. */ 167#undef HAVE_EV_LOOP 168 169/* Define to 1 if you have the `explicit_bzero' function. */ 170#undef HAVE_EXPLICIT_BZERO 171 172/* Define to 1 if you have the <fcntl.h> header file. */ 173#undef HAVE_FCNTL_H 174 175/* Define to 1 if you have the `fork' function. */ 176#undef HAVE_FORK 177 178/* Define to 1 if you have the `freeaddrinfo' function. */ 179#undef HAVE_FREEADDRINFO 180 181/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 182#undef HAVE_FSEEKO 183 184/* Define to 1 if you have the `gai_strerror' function. */ 185#undef HAVE_GAI_STRERROR 186 187/* Define to 1 if you have the `getaddrinfo' function. */ 188#undef HAVE_GETADDRINFO 189 190/* Define to 1 if you have the `gethostname' function. */ 191#undef HAVE_GETHOSTNAME 192 193/* Define to 1 if you have the `getifaddrs' function. */ 194#undef HAVE_GETIFADDRS 195 196/* Define to 1 if you have the `getnameinfo' function. */ 197#undef HAVE_GETNAMEINFO 198 199/* Define to 1 if you have the `getpwnam' function. */ 200#undef HAVE_GETPWNAM 201 202/* Define to 1 if you have the `getrandom' function. */ 203#undef HAVE_GETRANDOM 204 205/* Define to 1 if you have the `glob' function. */ 206#undef HAVE_GLOB 207 208/* Define to 1 if you have the <glob.h> header file. */ 209#undef HAVE_GLOB_H 210 211/* Define to 1 if you have the <grp.h> header file. */ 212#undef HAVE_GRP_H 213 214/* Define to 1 if you have the `HMAC_CTX_new' function. */ 215#undef HAVE_HMAC_CTX_NEW 216 217/* Define to 1 if you have the `HMAC_CTX_reset' function. */ 218#undef HAVE_HMAC_CTX_RESET 219 220/* Define to 1 if you have the <ifaddrs.h> header file. */ 221#undef HAVE_IFADDRS_H 222 223/* Define to 1 if you have the `inet_aton' function. */ 224#undef HAVE_INET_ATON 225 226/* Define to 1 if you have the `inet_ntop' function. */ 227#undef HAVE_INET_NTOP 228 229/* Define to 1 if you have the `inet_pton' function. */ 230#undef HAVE_INET_PTON 231 232/* Define to 1 if you have the `initgroups' function. */ 233#undef HAVE_INITGROUPS 234 235/* Define to 1 if you have the <inttypes.h> header file. */ 236#undef HAVE_INTTYPES_H 237 238/* Define to 1 if you have the `crypto' library (-lcrypto). */ 239#undef HAVE_LIBCRYPTO 240 241/* Define to 1 if you have the <limits.h> header file. */ 242#undef HAVE_LIMITS_H 243 244/* Define to 1 if you have the `localtime_r' function. */ 245#undef HAVE_LOCALTIME_R 246 247/* Define to 1 if you have the <login_cap.h> header file. */ 248#undef HAVE_LOGIN_CAP_H 249 250/* Define to 1 if your system has a GNU libc compatible `malloc' function, and 251 to 0 otherwise. */ 252#undef HAVE_MALLOC 253 254/* Define to 1 if you have the `memcpy' function. */ 255#undef HAVE_MEMCPY 256 257/* Define to 1 if you have the `memmove' function. */ 258#undef HAVE_MEMMOVE 259 260/* Define to 1 if you have the `memset' function. */ 261#undef HAVE_MEMSET 262 263/* Define to 1 if you have the <minix/config.h> header file. */ 264#undef HAVE_MINIX_CONFIG_H 265 266/* Define to 1 if you have the `mmap' function. */ 267#undef HAVE_MMAP 268 269/* If sys/socket.h has a struct mmsghdr. */ 270#undef HAVE_MMSGHDR 271 272/* Define to 1 if you have the `munmap' function. */ 273#undef HAVE_MUNMAP 274 275/* Define to 1 if you have the <netdb.h> header file. */ 276#undef HAVE_NETDB_H 277 278/* Define to 1 if you have the <netinet/in.h> header file. */ 279#undef HAVE_NETINET_IN_H 280 281/* Define to 1 if you have the <netinet/tcp.h> header file. */ 282#undef HAVE_NETINET_TCP_H 283 284/* Define to 1 if you have the <openssl/core_names.h> header file. */ 285#undef HAVE_OPENSSL_CORE_NAMES_H 286 287/* Define to 1 if you have the <openssl/err.h> header file. */ 288#undef HAVE_OPENSSL_ERR_H 289 290/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 291#undef HAVE_OPENSSL_INIT_CRYPTO 292 293/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 294#undef HAVE_OPENSSL_INIT_SSL 295 296/* Define to 1 if you have the <openssl/ocsp.h> header file. */ 297#undef HAVE_OPENSSL_OCSP_H 298 299/* Define to 1 if you have the <openssl/rand.h> header file. */ 300#undef HAVE_OPENSSL_RAND_H 301 302/* Define to 1 if you have the <openssl/ssl.h> header file. */ 303#undef HAVE_OPENSSL_SSL_H 304 305/* Define to 1 if you have the `ppoll' function. */ 306#undef HAVE_PPOLL 307 308/* Define to 1 if you have the `pselect' function. */ 309#undef HAVE_PSELECT 310 311/* if sys/select.h provides pselect prototype */ 312#undef HAVE_PSELECT_PROTO 313 314/* Define to 1 if you have the `pwrite' function. */ 315#undef HAVE_PWRITE 316 317/* If we have reallocarray(3) */ 318#undef HAVE_REALLOCARRAY 319 320/* Define if recvmmsg is implemented */ 321#undef HAVE_RECVMMSG 322 323/* Define to 1 if you have the <sched.h> header file. */ 324#undef HAVE_SCHED_H 325 326/* Define this if sched_setaffinity is available */ 327#undef HAVE_SCHED_SETAFFINITY 328 329/* Define if sendmmsg is implemented */ 330#undef HAVE_SENDMMSG 331 332/* Define to 1 if you have the `setproctitle' function. */ 333#undef HAVE_SETPROCTITLE 334 335/* Define to 1 if you have the `setregid' function. */ 336#undef HAVE_SETREGID 337 338/* Define to 1 if you have the `setresgid' function. */ 339#undef HAVE_SETRESGID 340 341/* Define to 1 if you have the `setresuid' function. */ 342#undef HAVE_SETRESUID 343 344/* Define to 1 if you have the `setreuid' function. */ 345#undef HAVE_SETREUID 346 347/* Define to 1 if you have the `setusercontext' function. */ 348#undef HAVE_SETUSERCONTEXT 349 350/* Define to 1 if you have the `SHA1_Init' function. */ 351#undef HAVE_SHA1_INIT 352 353/* Define to 1 if you have the `sigaction' function. */ 354#undef HAVE_SIGACTION 355 356/* Define to 1 if you have the <signal.h> header file. */ 357#undef HAVE_SIGNAL_H 358 359/* Define to 1 if you have the `sigprocmask' function. */ 360#undef HAVE_SIGPROCMASK 361 362/* Define to 1 if you have the `snprintf' function. */ 363#undef HAVE_SNPRINTF 364 365/* Define to 1 if you have the `socket' function. */ 366#undef HAVE_SOCKET 367 368/* Define if you have the SSL libraries installed. */ 369#undef HAVE_SSL 370 371/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 372#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL 373 374/* Define to 1 if you have the `SSL_get1_peer_certificate' function. */ 375#undef HAVE_SSL_GET1_PEER_CERTIFICATE 376 377/* Define to 1 if you have the <stdarg.h> header file. */ 378#undef HAVE_STDARG_H 379 380/* Define to 1 if you have the <stddef.h> header file. */ 381#undef HAVE_STDDEF_H 382 383/* Define to 1 if you have the <stdint.h> header file. */ 384#undef HAVE_STDINT_H 385 386/* Define to 1 if you have the <stdio.h> header file. */ 387#undef HAVE_STDIO_H 388 389/* Define to 1 if you have the <stdlib.h> header file. */ 390#undef HAVE_STDLIB_H 391 392/* Define to 1 if you have the `strcasecmp' function. */ 393#undef HAVE_STRCASECMP 394 395/* Define to 1 if you have the `strchr' function. */ 396#undef HAVE_STRCHR 397 398/* Define to 1 if you have the `strdup' function. */ 399#undef HAVE_STRDUP 400 401/* Define to 1 if you have the `strerror' function. */ 402#undef HAVE_STRERROR 403 404/* Define to 1 if you have the `strftime' function. */ 405#undef HAVE_STRFTIME 406 407/* Define to 1 if you have the <strings.h> header file. */ 408#undef HAVE_STRINGS_H 409 410/* Define to 1 if you have the <string.h> header file. */ 411#undef HAVE_STRING_H 412 413/* Define to 1 if you have the `strlcat' function. */ 414#undef HAVE_STRLCAT 415 416/* Define to 1 if you have the `strlcpy' function. */ 417#undef HAVE_STRLCPY 418 419/* Define to 1 if you have the `strncasecmp' function. */ 420#undef HAVE_STRNCASECMP 421 422/* Define to 1 if you have the `strptime' function. */ 423#undef HAVE_STRPTIME 424 425/* Define to 1 if you have the `strtol' function. */ 426#undef HAVE_STRTOL 427 428/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 429#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 430 431/* Define to 1 if `st_mtimensec' is a member of `struct stat'. */ 432#undef HAVE_STRUCT_STAT_ST_MTIMENSEC 433 434/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ 435#undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 436 437/* If time.h has a struct timespec (for pselect). */ 438#undef HAVE_STRUCT_TIMESPEC 439 440/* Define to 1 if you have the `sysconf' function. */ 441#undef HAVE_SYSCONF 442 443/* Define to 1 if you have the <syslog.h> header file. */ 444#undef HAVE_SYSLOG_H 445 446/* Define to 1 if systemd should be used */ 447#undef HAVE_SYSTEMD 448 449/* Define to 1 if you have the <sys/bitypes.h> header file. */ 450#undef HAVE_SYS_BITYPES_H 451 452/* Define to 1 if you have the <sys/cpuset.h> header file. */ 453#undef HAVE_SYS_CPUSET_H 454 455/* Define to 1 if you have the <sys/mman.h> header file. */ 456#undef HAVE_SYS_MMAN_H 457 458/* Define to 1 if you have the <sys/param.h> header file. */ 459#undef HAVE_SYS_PARAM_H 460 461/* Define to 1 if you have the <sys/random.h> header file. */ 462#undef HAVE_SYS_RANDOM_H 463 464/* Define to 1 if you have the <sys/select.h> header file. */ 465#undef HAVE_SYS_SELECT_H 466 467/* Define to 1 if you have the <sys/socket.h> header file. */ 468#undef HAVE_SYS_SOCKET_H 469 470/* Define to 1 if you have the <sys/stat.h> header file. */ 471#undef HAVE_SYS_STAT_H 472 473/* Define to 1 if you have the <sys/types.h> header file. */ 474#undef HAVE_SYS_TYPES_H 475 476/* Define to 1 if you have the <sys/un.h> header file. */ 477#undef HAVE_SYS_UN_H 478 479/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 480#undef HAVE_SYS_WAIT_H 481 482/* Define to 1 if you have the <tcpd.h> header file. */ 483#undef HAVE_TCPD_H 484 485/* Define to 1 if you have the <time.h> header file. */ 486#undef HAVE_TIME_H 487 488/* Define if TLS 1.3 is supported by OpenSSL */ 489#undef HAVE_TLS_1_3 490 491/* Define to 1 if you have the `tzset' function. */ 492#undef HAVE_TZSET 493 494/* Define to 1 if you have the <unistd.h> header file. */ 495#undef HAVE_UNISTD_H 496 497/* Define this if you have double va_list definitions. */ 498#undef HAVE_VA_LIST_DOUBLE_DEF 499 500/* Define to 1 if you have the `vfork' function. */ 501#undef HAVE_VFORK 502 503/* Define to 1 if you have the <vfork.h> header file. */ 504#undef HAVE_VFORK_H 505 506/* Define to 1 if you have the <wchar.h> header file. */ 507#undef HAVE_WCHAR_H 508 509/* Define to 1 if `fork' works. */ 510#undef HAVE_WORKING_FORK 511 512/* Define to 1 if `vfork' works. */ 513#undef HAVE_WORKING_VFORK 514 515/* Define to 1 if you have the `writev' function. */ 516#undef HAVE_WRITEV 517 518/* Define to the default nsd identity. */ 519#undef IDENTITY 520 521/* Define this to enable IPv6 support. */ 522#undef INET6 523 524/* If flex defines yy_current_buffer as a macro */ 525#undef LEX_DEFINES_YY_CURRENT_BUFFER 526 527/* Define to the maximum message length to pass to syslog. */ 528#undef MAXSYSLOGMSGLEN 529 530/* Define this to cleanup memory at exit (eg. for valgrind, etc.) */ 531#undef MEMCLEAN 532 533/* Define if memcmp() does not compare unsigned bytes */ 534#undef MEMCMP_IS_BROKEN 535 536/* Define this to enable response minimalization to reduce truncation. */ 537#undef MINIMAL_RESPONSES 538 539/* Define if mkdir has one argument. */ 540#undef MKDIR_HAS_ONE_ARG 541 542/* Undefine this to enable internal runtime checks. */ 543#undef NDEBUG 544 545/* Define if the network stack does not fully support nonblocking io (causes 546 lower performance). */ 547#undef NONBLOCKING_IS_BROKEN 548 549/* Define to the default nsd-control port. */ 550#undef NSD_CONTROL_PORT 551 552/* Define to nsd-control proto version. */ 553#undef NSD_CONTROL_VERSION 554 555/* Pathname to start nsd from nsd-control */ 556#undef NSD_START_PATH 557 558/* Define this to enable NSEC3 support. */ 559#undef NSEC3 560 561/* Define to the address where bug reports for this package should be sent. */ 562#undef PACKAGE_BUGREPORT 563 564/* Define to the full name of this package. */ 565#undef PACKAGE_NAME 566 567/* Define to the full name and version of this package. */ 568#undef PACKAGE_STRING 569 570/* Define to the one symbol short name of this package. */ 571#undef PACKAGE_TARNAME 572 573/* Define to the home page for this package. */ 574#undef PACKAGE_URL 575 576/* Define to the version of this package. */ 577#undef PACKAGE_VERSION 578 579/* Define this to use packed structure alignment. */ 580#undef PACKED_STRUCTS 581 582/* Pathname to the NSD pidfile */ 583#undef PIDFILE 584 585/* Define this to enable rate limiting. */ 586#undef RATELIMIT 587 588/* Define this to set ratelimit to off by default. */ 589#undef RATELIMIT_DEFAULT_OFF 590 591/* If reallocarray needs defines to appear in the headers */ 592#undef REALLOCARRAY_NEEDS_DEFINES 593 594/* Return type of signal handlers, but autoconf 2.70 says 'your code may 595 safely assume C89 semantics that RETSIGTYPE is void.' */ 596#undef RETSIGTYPE 597 598/* The size of `off_t', as computed by sizeof. */ 599#undef SIZEOF_OFF_T 600 601/* The size of `void*', as computed by sizeof. */ 602#undef SIZEOF_VOIDP 603 604/* Define to 1 if all of the C90 standard headers exist (not just the ones 605 required in a freestanding environment). This macro is provided for 606 backward compatibility; new code need not use it. */ 607#undef STDC_HEADERS 608 609/* strptime is available from time.h with some defines. */ 610#undef STRPTIME_NEEDS_DEFINES 611 612/* use default strptime. */ 613#undef STRPTIME_WORKS 614 615/* Define to the backlog to be used with listen. */ 616#undef TCP_BACKLOG 617 618/* Define to the default maximum message length. */ 619#undef TCP_MAX_MESSAGE_LEN 620 621/* Define to the default tcp port. */ 622#undef TCP_PORT 623 624/* Define to the default tcp timeout. */ 625#undef TCP_TIMEOUT 626 627/* Define to the default DNS over TLS port. */ 628#undef TLS_PORT 629 630/* Define to the default maximum udp message length. */ 631#undef UDP_MAX_MESSAGE_LEN 632 633/* Define to the default udp port. */ 634#undef UDP_PORT 635 636/* the user name to drop privileges to */ 637#undef USER 638 639/* Define to 1 to enable dnstap support */ 640#undef USE_DNSTAP 641 642/* Define this to show the role of processes in the logfile for debugging 643 purposes. */ 644#undef USE_LOG_PROCESS_ROLE 645 646/* Define if you want to use internal select based events */ 647#undef USE_MINI_EVENT 648 649/* Define this to enable mmap instead of malloc. Experimental. */ 650#undef USE_MMAP_ALLOC 651 652/* Define this to configure to use the radix tree. */ 653#undef USE_RADIX_TREE 654 655/* Enable extensions on AIX 3, Interix. */ 656#ifndef _ALL_SOURCE 657# undef _ALL_SOURCE 658#endif 659/* Enable general extensions on macOS. */ 660#ifndef _DARWIN_C_SOURCE 661# undef _DARWIN_C_SOURCE 662#endif 663/* Enable general extensions on Solaris. */ 664#ifndef __EXTENSIONS__ 665# undef __EXTENSIONS__ 666#endif 667/* Enable GNU extensions on systems that have them. */ 668#ifndef _GNU_SOURCE 669# undef _GNU_SOURCE 670#endif 671/* Enable X/Open compliant socket functions that do not require linking 672 with -lxnet on HP-UX 11.11. */ 673#ifndef _HPUX_ALT_XOPEN_SOCKET_API 674# undef _HPUX_ALT_XOPEN_SOCKET_API 675#endif 676/* Identify the host operating system as Minix. 677 This macro does not affect the system headers' behavior. 678 A future release of Autoconf may stop defining this macro. */ 679#ifndef _MINIX 680# undef _MINIX 681#endif 682/* Enable general extensions on NetBSD. 683 Enable NetBSD compatibility extensions on Minix. */ 684#ifndef _NETBSD_SOURCE 685# undef _NETBSD_SOURCE 686#endif 687/* Enable OpenBSD compatibility extensions on NetBSD. 688 Oddly enough, this does nothing on OpenBSD. */ 689#ifndef _OPENBSD_SOURCE 690# undef _OPENBSD_SOURCE 691#endif 692/* Define to 1 if needed for POSIX-compatible behavior. */ 693#ifndef _POSIX_SOURCE 694# undef _POSIX_SOURCE 695#endif 696/* Define to 2 if needed for POSIX-compatible behavior. */ 697#ifndef _POSIX_1_SOURCE 698# undef _POSIX_1_SOURCE 699#endif 700/* Enable POSIX-compatible threading on Solaris. */ 701#ifndef _POSIX_PTHREAD_SEMANTICS 702# undef _POSIX_PTHREAD_SEMANTICS 703#endif 704/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ 705#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 706# undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 707#endif 708/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ 709#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 710# undef __STDC_WANT_IEC_60559_BFP_EXT__ 711#endif 712/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ 713#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ 714# undef __STDC_WANT_IEC_60559_DFP_EXT__ 715#endif 716/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ 717#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ 718# undef __STDC_WANT_IEC_60559_FUNCS_EXT__ 719#endif 720/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ 721#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ 722# undef __STDC_WANT_IEC_60559_TYPES_EXT__ 723#endif 724/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ 725#ifndef __STDC_WANT_LIB_EXT2__ 726# undef __STDC_WANT_LIB_EXT2__ 727#endif 728/* Enable extensions specified by ISO/IEC 24747:2009. */ 729#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ 730# undef __STDC_WANT_MATH_SPEC_FUNCS__ 731#endif 732/* Enable extensions on HP NonStop. */ 733#ifndef _TANDEM_SOURCE 734# undef _TANDEM_SOURCE 735#endif 736/* Enable X/Open extensions. Define to 500 only if necessary 737 to make mbstate_t available. */ 738#ifndef _XOPEN_SOURCE 739# undef _XOPEN_SOURCE 740#endif 741 742 743/* Define this to enable TCP fast open. */ 744#undef USE_TCP_FASTOPEN 745 746/* Define this to enable per-zone statistics gathering. */ 747#undef USE_ZONE_STATS 748 749/* Define to the default zone verification udp port. */ 750#undef VERIFY_PORT 751 752/* Define to the NSD version to answer version.server query. */ 753#undef VERSION 754 755/* Pathname to the NSD xfrd zone timer state file. */ 756#undef XFRDFILE 757 758/* Pathname to where the NSD transfer dir is created. */ 759#undef XFRDIR 760 761/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 762 `char[]'. */ 763#undef YYTEXT_POINTER 764 765/* Pathname to the NSD zone list file. */ 766#undef ZONELISTFILE 767 768/* NSD default location for zone files. Empty string or NULL to disable. */ 769#undef ZONESDIR 770 771/* Number of bits in a file offset, on hosts where this is settable. */ 772#undef _FILE_OFFSET_BITS 773 774/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 775#undef _LARGEFILE_SOURCE 776 777/* Define for large files, on AIX-style hosts. */ 778#undef _LARGE_FILES 779 780/* Enable for compile on Minix */ 781#undef _NETBSD_SOURCE 782 783/* Define to empty if `const' does not conform to ANSI C. */ 784#undef const 785 786/* Define to `int' if <sys/types.h> doesn't define. */ 787#undef gid_t 788 789/* in_addr_t */ 790#undef in_addr_t 791 792/* Define to `__inline__' or `__inline' if that's what the C compiler 793 calls it, or to nothing if 'inline' is not supported under any name. */ 794#ifndef __cplusplus 795#undef inline 796#endif 797 798/* Define "int16_t" to "short" if "int16_t" is missing */ 799#undef int16_t 800 801/* Define "int32_t" to "int" if "int32_t" is missing */ 802#undef int32_t 803 804/* Define "int64_t" to "long long" if "int64_t" is missing */ 805#undef int64_t 806 807/* Define "int8_t" to "char" if "int8_t" is missing */ 808#undef int8_t 809 810/* Define to rpl_malloc if the replacement function should be used. */ 811#undef malloc 812 813/* Define to `long int' if <sys/types.h> does not define. */ 814#undef off_t 815 816/* Define as a signed integer type capable of holding a process identifier. */ 817#undef pid_t 818 819/* Define "sig_atomic_t" to "int" if "sig_atomic_t" is missing */ 820#undef sig_atomic_t 821 822/* Define to `unsigned int' if <sys/types.h> does not define. */ 823#undef size_t 824 825/* Define "socklen_t" to "int" if "socklen_t" is missing */ 826#undef socklen_t 827 828/* Fallback member name for socket family in struct sockaddr_storage */ 829#undef ss_family 830 831/* Define "ssize_t" to "int" if "ssize_t" is missing */ 832#undef ssize_t 833 834/* Define "suseconds_t" to "time_t" if "suseconds_t" is missing */ 835#undef suseconds_t 836 837/* Define to `int' if <sys/types.h> doesn't define. */ 838#undef uid_t 839 840/* Define "uint16_t" to "unsigned short" if "uint16_t" is missing */ 841#undef uint16_t 842 843/* Define "uint32_t" to "unsigned int" if "uint32_t" is missing */ 844#undef uint32_t 845 846/* Define "uint64_t" to "unsigned long long" if "uint64_t" is missing */ 847#undef uint64_t 848 849/* Define "uint8_t" to "unsigned char" if "uint8_t" is missing */ 850#undef uint8_t 851 852/* Define "uintptr_t" to "void*" if "uintptr_t" is missing */ 853#undef uintptr_t 854 855/* Define as `fork' if `vfork' does not work. */ 856#undef vfork 857 858 859/* define before includes as it specifies what standard to use. */ 860#if (defined(HAVE_PSELECT) && !defined (HAVE_PSELECT_PROTO)) \ 861 || !defined (HAVE_CTIME_R_PROTO) \ 862 || defined (STRPTIME_NEEDS_DEFINES) || defined(REALLOCARRAY_NEEDS_DEFINES) 863# ifndef _XOPEN_SOURCE 864# define _XOPEN_SOURCE 600 865# endif 866# ifndef _POSIX_C_SOURCE 867# define _POSIX_C_SOURCE 200112 868# endif 869# ifndef _BSD_SOURCE 870# define _BSD_SOURCE 1 871# endif 872# ifndef _OPENBSD_SOURCE 873# define _OPENBSD_SOURCE 1 874# endif 875# ifndef _DEFAULT_SOURCE 876# define _DEFAULT_SOURCE 1 877# endif 878# ifndef __EXTENSIONS__ 879# define __EXTENSIONS__ 1 880# endif 881# ifndef _STDC_C99 882# define _STDC_C99 1 883# endif 884# ifndef _ALL_SOURCE 885# define _ALL_SOURCE 1 886# endif 887#endif 888 889 890 891 892/* provide timespec def if not available */ 893#ifndef CONFIG_DEFINES 894#define CONFIG_DEFINES 895#ifndef HAVE_STRUCT_TIMESPEC 896#ifndef __timespec_defined 897#define __timespec_defined 1 898 struct timespec { 899 long tv_sec; /* seconds */ 900 long tv_nsec; /* nanoseconds */ 901 }; 902#endif /* !__timespec_defined */ 903#endif /* !HAVE_STRUCT_TIMESPEC */ 904#endif /* !CONFIG_DEFINES */ 905 906#ifdef PACKED_STRUCTS 907#define ATTR_PACKED __attribute__((packed)) 908#else 909#define ATTR_PACKED 910#endif 911 912 913 914#ifdef HAVE_VA_LIST_DOUBLE_DEF 915/* workaround double va_list definition on some platforms */ 916# ifndef _VA_LIST_DEFINED 917# define _VA_LIST_DEFINED 918# endif 919#endif 920 921 922 923#include <sys/types.h> 924#include <stdlib.h> 925#include <stddef.h> 926#include <string.h> 927 928#ifdef HAVE_TIME_H 929#include <time.h> 930#endif 931 932#ifdef HAVE_STDINT_H 933#include <stdint.h> 934#endif 935 936#ifdef HAVE_SYS_SOCKET_H 937#include <sys/socket.h> 938#endif 939 940#ifdef HAVE_NETINET_IN_H 941#include <netinet/in.h> 942#endif 943 944#ifdef HAVE_NETINET_TCP_H 945#include <netinet/tcp.h> 946#endif 947 948#ifdef HAVE_ARPA_INET_H 949#include <arpa/inet.h> 950#endif 951 952/* For Tru64 */ 953#ifdef HAVE_SYS_BITYPES_H 954#include <sys/bitypes.h> 955#endif 956 957 958 959#ifdef HAVE_ATTR_FORMAT 960#define ATTR_FORMAT(archetype, string_index, first_to_check) \ 961 __attribute__ ((format (archetype, string_index, first_to_check))) 962#else /* !HAVE_ATTR_FORMAT */ 963#define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 964#endif /* !HAVE_ATTR_FORMAT */ 965#if defined(__cplusplus) 966#define ATTR_UNUSED(x) 967#elif defined(HAVE_ATTR_UNUSED) 968#define ATTR_UNUSED(x) x __attribute__((unused)) 969#else /* !HAVE_ATTR_UNUSED */ 970#define ATTR_UNUSED(x) x 971#endif /* !HAVE_ATTR_UNUSED */ 972 973 974 975#ifndef IPV6_MIN_MTU 976#define IPV6_MIN_MTU 1280 977#endif /* IPV6_MIN_MTU */ 978 979#ifndef AF_INET6 980#define AF_INET6 28 981#endif /* AF_INET6 */ 982 983 984 985/* maximum nesting of included files */ 986#define MAXINCLUDES 10 987 988 989 990int __b64_ntop(uint8_t const *src, size_t srclength, 991 char *target, size_t targsize); 992int __b64_pton(char const *src, uint8_t *target, size_t targsize); 993 994 995 996#ifndef HAVE_FSEEKO 997#define fseeko fseek 998#define ftello ftell 999#endif /* HAVE_FSEEKO */ 1000#ifndef HAVE_SNPRINTF 1001#include <stdarg.h> 1002int snprintf (char *str, size_t count, const char *fmt, ...); 1003int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 1004#endif /* HAVE_SNPRINTF */ 1005#ifndef HAVE_INET_PTON 1006int inet_pton(int af, const char* src, void* dst); 1007#endif /* HAVE_INET_PTON */ 1008#ifndef HAVE_INET_NTOP 1009const char *inet_ntop(int af, const void *src, char *dst, size_t size); 1010#endif 1011#ifndef HAVE_INET_ATON 1012int inet_aton(const char *cp, struct in_addr *addr); 1013#endif 1014#ifndef HAVE_MEMMOVE 1015void *memmove(void *dest, const void *src, size_t n); 1016#endif 1017#ifndef HAVE_EXPLICIT_BZERO 1018#define explicit_bzero nsd_explicit_bzero 1019void explicit_bzero(void* buf, size_t len); 1020#endif 1021#ifndef HAVE_STRLCAT 1022size_t strlcat(char *dst, const char *src, size_t siz); 1023#endif 1024#ifndef HAVE_STRLCPY 1025size_t strlcpy(char *dst, const char *src, size_t siz); 1026#endif 1027#ifndef HAVE_REALLOCARRAY 1028void* reallocarray(void *ptr, size_t nmemb, size_t size); 1029#endif 1030#ifndef HAVE_GETADDRINFO 1031#include "compat/fake-rfc2553.h" 1032#endif 1033#ifndef HAVE_STRPTIME 1034#define HAVE_STRPTIME 1 1035char *strptime(const char *s, const char *format, struct tm *tm); 1036#endif 1037#ifndef STRPTIME_WORKS 1038#define STRPTIME_WORKS 1 1039char *nsd_strptime(const char *s, const char *format, struct tm *tm); 1040#define strptime(a,b,c) nsd_strptime((a),(b),(c)) 1041#endif 1042#if (HAVE_CPU_SET_T || HAVE_CPUSET_T) 1043#include "compat/cpuset.h" 1044#endif 1045#ifndef HAVE_SETPROCTITLE 1046#ifdef __linux__ 1047#define HAVE_SETPROCTITLE 1 1048#include <stdarg.h> 1049void setproctitle(const char *fmt, ...); 1050#endif 1051#endif 1052 1053 1054 1055#ifdef MEMCMP_IS_BROKEN 1056#include "compat/memcmp.h" 1057#define memcmp memcmp_nsd 1058int memcmp(const void *x, const void *y, size_t n); 1059#endif 1060 1061 1062#ifndef MAXHOSTNAMELEN 1063#define MAXHOSTNAMELEN 256 1064#endif 1065 1066 1067