config.h.in revision 1.1.1.5
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/* Define this to enable BIND8 like NSTATS & XSTATS. */ 7#undef BIND8_STATS 8 9/* NSD default chroot directory */ 10#undef CHROOTDIR 11 12/* NSD config dir */ 13#undef CONFIGDIR 14 15/* Pathname to the NSD configuration file */ 16#undef CONFIGFILE 17 18/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 19 */ 20#undef DARWIN_BROKEN_SETREUID 21 22/* Pathname to the NSD database */ 23#undef DBFILE 24 25/* default dnstap socket path */ 26#undef DNSTAP_SOCKET_PATH 27 28/* Define to the default maximum message length with EDNS. */ 29#undef EDNS_MAX_MESSAGE_LEN 30 31/* Define to the default facility for syslog. */ 32#undef FACILITY 33 34/* Define to 1 if you have the `accept4' function. */ 35#undef HAVE_ACCEPT4 36 37/* Define to 1 if you have the `alarm' function. */ 38#undef HAVE_ALARM 39 40/* Define to 1 if you have the `arc4random' function. */ 41#undef HAVE_ARC4RANDOM 42 43/* Define to 1 if you have the `arc4random_uniform' function. */ 44#undef HAVE_ARC4RANDOM_UNIFORM 45 46/* Define to 1 if you have the <arpa/inet.h> header file. */ 47#undef HAVE_ARPA_INET_H 48 49/* Whether the C compiler accepts the "format" attribute */ 50#undef HAVE_ATTR_FORMAT 51 52/* Whether the C compiler accepts the "noreturn" attribute */ 53#undef HAVE_ATTR_NORETURN 54 55/* Whether the C compiler accepts the "unused" attribute */ 56#undef HAVE_ATTR_UNUSED 57 58/* Define to 1 if you have the `b64_ntop' function. */ 59#undef HAVE_B64_NTOP 60 61/* Define to 1 if you have the `b64_pton' function. */ 62#undef HAVE_B64_PTON 63 64/* Define to 1 if you have the `basename' function. */ 65#undef HAVE_BASENAME 66 67/* Define to 1 if your system has a working `chown' function. */ 68#undef HAVE_CHOWN 69 70/* Define to 1 if you have the `chroot' function. */ 71#undef HAVE_CHROOT 72 73/* Define to 1 if you have the `clock_gettime' function. */ 74#undef HAVE_CLOCK_GETTIME 75 76/* if time.h provides ctime_r prototype */ 77#undef HAVE_CTIME_R_PROTO 78 79/* Define to 1 if you have the `dup2' function. */ 80#undef HAVE_DUP2 81 82/* Define to 1 if you have the <endian.h> header file. */ 83#undef HAVE_ENDIAN_H 84 85/* Define to 1 if you have the `endpwent' function. */ 86#undef HAVE_ENDPWENT 87 88/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 89#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 90 91/* Define to 1 if you have the `event_base_free' function. */ 92#undef HAVE_EVENT_BASE_FREE 93 94/* Define to 1 if you have the `event_base_get_method' function. */ 95#undef HAVE_EVENT_BASE_GET_METHOD 96 97/* Define to 1 if you have the `event_base_new' function. */ 98#undef HAVE_EVENT_BASE_NEW 99 100/* Define to 1 if you have the `event_base_once' function. */ 101#undef HAVE_EVENT_BASE_ONCE 102 103/* Define to 1 if you have the <event.h> header file. */ 104#undef HAVE_EVENT_H 105 106/* Define to 1 if you have the `EVP_cleanup' function. */ 107#undef HAVE_EVP_CLEANUP 108 109/* Define to 1 if you have the `ev_default_loop' function. */ 110#undef HAVE_EV_DEFAULT_LOOP 111 112/* Define to 1 if you have the `ev_loop' function. */ 113#undef HAVE_EV_LOOP 114 115/* Define to 1 if you have the <fcntl.h> header file. */ 116#undef HAVE_FCNTL_H 117 118/* Define to 1 if you have the `fork' function. */ 119#undef HAVE_FORK 120 121/* Define to 1 if you have the `freeaddrinfo' function. */ 122#undef HAVE_FREEADDRINFO 123 124/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 125#undef HAVE_FSEEKO 126 127/* Define to 1 if you have the `gai_strerror' function. */ 128#undef HAVE_GAI_STRERROR 129 130/* Define to 1 if you have the `getaddrinfo' function. */ 131#undef HAVE_GETADDRINFO 132 133/* Define to 1 if you have the `gethostname' function. */ 134#undef HAVE_GETHOSTNAME 135 136/* Define to 1 if you have the `getnameinfo' function. */ 137#undef HAVE_GETNAMEINFO 138 139/* Define to 1 if you have the `getpwnam' function. */ 140#undef HAVE_GETPWNAM 141 142/* Define to 1 if you have the `glob' function. */ 143#undef HAVE_GLOB 144 145/* Define to 1 if you have the <glob.h> header file. */ 146#undef HAVE_GLOB_H 147 148/* Define to 1 if you have the <grp.h> header file. */ 149#undef HAVE_GRP_H 150 151/* Define to 1 if you have the `HMAC_CTX_new' function. */ 152#undef HAVE_HMAC_CTX_NEW 153 154/* Define to 1 if you have the `HMAC_CTX_reset' function. */ 155#undef HAVE_HMAC_CTX_RESET 156 157/* Define to 1 if you have the `inet_aton' function. */ 158#undef HAVE_INET_ATON 159 160/* Define to 1 if you have the `inet_ntop' function. */ 161#undef HAVE_INET_NTOP 162 163/* Define to 1 if you have the `inet_pton' function. */ 164#undef HAVE_INET_PTON 165 166/* Define to 1 if you have the `initgroups' function. */ 167#undef HAVE_INITGROUPS 168 169/* Define to 1 if you have the <inttypes.h> header file. */ 170#undef HAVE_INTTYPES_H 171 172/* Define to 1 if you have the `crypto' library (-lcrypto). */ 173#undef HAVE_LIBCRYPTO 174 175/* Define to 1 if you have the <limits.h> header file. */ 176#undef HAVE_LIMITS_H 177 178/* Define to 1 if you have the `localtime_r' function. */ 179#undef HAVE_LOCALTIME_R 180 181/* Define to 1 if you have the <login_cap.h> header file. */ 182#undef HAVE_LOGIN_CAP_H 183 184/* Define to 1 if your system has a GNU libc compatible `malloc' function, and 185 to 0 otherwise. */ 186#undef HAVE_MALLOC 187 188/* Define to 1 if you have the `memcpy' function. */ 189#undef HAVE_MEMCPY 190 191/* Define to 1 if you have the `memmove' function. */ 192#undef HAVE_MEMMOVE 193 194/* Define to 1 if you have the <memory.h> header file. */ 195#undef HAVE_MEMORY_H 196 197/* Define to 1 if you have the `memset' function. */ 198#undef HAVE_MEMSET 199 200/* Define to 1 if you have the `mmap' function. */ 201#undef HAVE_MMAP 202 203/* Define to 1 if you have the `munmap' function. */ 204#undef HAVE_MUNMAP 205 206/* Define to 1 if you have the <netdb.h> header file. */ 207#undef HAVE_NETDB_H 208 209/* Define to 1 if you have the <netinet/in.h> header file. */ 210#undef HAVE_NETINET_IN_H 211 212/* Define to 1 if you have the <netinet/tcp.h> header file. */ 213#undef HAVE_NETINET_TCP_H 214 215/* Define to 1 if you have the <openssl/err.h> header file. */ 216#undef HAVE_OPENSSL_ERR_H 217 218/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 219#undef HAVE_OPENSSL_INIT_CRYPTO 220 221/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 222#undef HAVE_OPENSSL_INIT_SSL 223 224/* Define to 1 if you have the <openssl/rand.h> header file. */ 225#undef HAVE_OPENSSL_RAND_H 226 227/* Define to 1 if you have the <openssl/ssl.h> header file. */ 228#undef HAVE_OPENSSL_SSL_H 229 230/* Define to 1 if you have the `ppoll' function. */ 231#undef HAVE_PPOLL 232 233/* Define to 1 if you have the `pselect' function. */ 234#undef HAVE_PSELECT 235 236/* if sys/select.h provides pselect prototype */ 237#undef HAVE_PSELECT_PROTO 238 239/* Define to 1 if you have the `pwrite' function. */ 240#undef HAVE_PWRITE 241 242/* Define to 1 if you have the `reallocarray' function. */ 243#undef HAVE_REALLOCARRAY 244 245/* Define if recvmmsg is implemented */ 246#undef HAVE_RECVMMSG 247 248/* Define if sendmmsg is implemented */ 249#undef HAVE_SENDMMSG 250 251/* Define to 1 if you have the `setregid' function. */ 252#undef HAVE_SETREGID 253 254/* Define to 1 if you have the `setresgid' function. */ 255#undef HAVE_SETRESGID 256 257/* Define to 1 if you have the `setresuid' function. */ 258#undef HAVE_SETRESUID 259 260/* Define to 1 if you have the `setreuid' function. */ 261#undef HAVE_SETREUID 262 263/* Define to 1 if you have the `setusercontext' function. */ 264#undef HAVE_SETUSERCONTEXT 265 266/* Define to 1 if you have the `sigaction' function. */ 267#undef HAVE_SIGACTION 268 269/* Define to 1 if you have the <signal.h> header file. */ 270#undef HAVE_SIGNAL_H 271 272/* Define to 1 if you have the `sigprocmask' function. */ 273#undef HAVE_SIGPROCMASK 274 275/* Define to 1 if you have the `snprintf' function. */ 276#undef HAVE_SNPRINTF 277 278/* Define to 1 if you have the `socket' function. */ 279#undef HAVE_SOCKET 280 281/* Define if you have the SSL libraries installed. */ 282#undef HAVE_SSL 283 284/* Define to 1 if you have the <stdarg.h> header file. */ 285#undef HAVE_STDARG_H 286 287/* Define to 1 if you have the <stddef.h> header file. */ 288#undef HAVE_STDDEF_H 289 290/* Define to 1 if you have the <stdint.h> header file. */ 291#undef HAVE_STDINT_H 292 293/* Define to 1 if you have the <stdlib.h> header file. */ 294#undef HAVE_STDLIB_H 295 296/* Define to 1 if you have the `strcasecmp' function. */ 297#undef HAVE_STRCASECMP 298 299/* Define to 1 if you have the `strchr' function. */ 300#undef HAVE_STRCHR 301 302/* Define to 1 if you have the `strdup' function. */ 303#undef HAVE_STRDUP 304 305/* Define to 1 if you have the `strerror' function. */ 306#undef HAVE_STRERROR 307 308/* Define to 1 if you have the `strftime' function. */ 309#undef HAVE_STRFTIME 310 311/* Define to 1 if you have the <strings.h> header file. */ 312#undef HAVE_STRINGS_H 313 314/* Define to 1 if you have the <string.h> header file. */ 315#undef HAVE_STRING_H 316 317/* Define to 1 if you have the `strlcat' function. */ 318#undef HAVE_STRLCAT 319 320/* Define to 1 if you have the `strlcpy' function. */ 321#undef HAVE_STRLCPY 322 323/* Define to 1 if you have the `strncasecmp' function. */ 324#undef HAVE_STRNCASECMP 325 326/* Define to 1 if you have the `strptime' function. */ 327#undef HAVE_STRPTIME 328 329/* Define to 1 if you have the `strtol' function. */ 330#undef HAVE_STRTOL 331 332/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 333#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 334 335/* Define to 1 if `st_mtimensec' is a member of `struct stat'. */ 336#undef HAVE_STRUCT_STAT_ST_MTIMENSEC 337 338/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ 339#undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 340 341/* If time.h has a struct timespec (for pselect). */ 342#undef HAVE_STRUCT_TIMESPEC 343 344/* Define to 1 if you have the <syslog.h> header file. */ 345#undef HAVE_SYSLOG_H 346 347/* Define to 1 if you have the <sys/bitypes.h> header file. */ 348#undef HAVE_SYS_BITYPES_H 349 350/* Define to 1 if you have the <sys/mman.h> header file. */ 351#undef HAVE_SYS_MMAN_H 352 353/* Define to 1 if you have the <sys/param.h> header file. */ 354#undef HAVE_SYS_PARAM_H 355 356/* Define to 1 if you have the <sys/select.h> header file. */ 357#undef HAVE_SYS_SELECT_H 358 359/* Define to 1 if you have the <sys/socket.h> header file. */ 360#undef HAVE_SYS_SOCKET_H 361 362/* Define to 1 if you have the <sys/stat.h> header file. */ 363#undef HAVE_SYS_STAT_H 364 365/* Define to 1 if you have the <sys/types.h> header file. */ 366#undef HAVE_SYS_TYPES_H 367 368/* Define to 1 if you have the <sys/un.h> header file. */ 369#undef HAVE_SYS_UN_H 370 371/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 372#undef HAVE_SYS_WAIT_H 373 374/* Define to 1 if you have the <tcpd.h> header file. */ 375#undef HAVE_TCPD_H 376 377/* Define to 1 if you have the <time.h> header file. */ 378#undef HAVE_TIME_H 379 380/* Define to 1 if you have the `tzset' function. */ 381#undef HAVE_TZSET 382 383/* Define to 1 if you have the <unistd.h> header file. */ 384#undef HAVE_UNISTD_H 385 386/* Define this if you have double va_list definitions. */ 387#undef HAVE_VA_LIST_DOUBLE_DEF 388 389/* Define to 1 if you have the `vfork' function. */ 390#undef HAVE_VFORK 391 392/* Define to 1 if you have the <vfork.h> header file. */ 393#undef HAVE_VFORK_H 394 395/* Define to 1 if `fork' works. */ 396#undef HAVE_WORKING_FORK 397 398/* Define to 1 if `vfork' works. */ 399#undef HAVE_WORKING_VFORK 400 401/* Define to 1 if you have the `writev' function. */ 402#undef HAVE_WRITEV 403 404/* Define to the default nsd identity. */ 405#undef IDENTITY 406 407/* Define this to enable IPv6 support. */ 408#undef INET6 409 410/* If flex defines yy_current_buffer as a macro */ 411#undef LEX_DEFINES_YY_CURRENT_BUFFER 412 413/* Define to the maximum message length to pass to syslog. */ 414#undef MAXSYSLOGMSGLEN 415 416/* Define this to cleanup memory at exit (eg. for valgrind, etc.) */ 417#undef MEMCLEAN 418 419/* Define if memcmp() does not compare unsigned bytes */ 420#undef MEMCMP_IS_BROKEN 421 422/* Define this to enable response minimalization to reduce truncation. */ 423#undef MINIMAL_RESPONSES 424 425/* Define if mkdir has one argument. */ 426#undef MKDIR_HAS_ONE_ARG 427 428/* Undefine this to enable internal runtime checks. */ 429#undef NDEBUG 430 431/* Define if the network stack does not fully support nonblocking io (causes 432 lower performance). */ 433#undef NONBLOCKING_IS_BROKEN 434 435/* Define to the default nsd-control port. */ 436#undef NSD_CONTROL_PORT 437 438/* Define to nsd-control proto version. */ 439#undef NSD_CONTROL_VERSION 440 441/* Pathname to start nsd from nsd-control */ 442#undef NSD_START_PATH 443 444/* Define this to enable NSEC3 support. */ 445#undef NSEC3 446 447/* Define to the address where bug reports for this package should be sent. */ 448#undef PACKAGE_BUGREPORT 449 450/* Define to the full name of this package. */ 451#undef PACKAGE_NAME 452 453/* Define to the full name and version of this package. */ 454#undef PACKAGE_STRING 455 456/* Define to the one symbol short name of this package. */ 457#undef PACKAGE_TARNAME 458 459/* Define to the home page for this package. */ 460#undef PACKAGE_URL 461 462/* Define to the version of this package. */ 463#undef PACKAGE_VERSION 464 465/* Define this to use packed structure alignment. */ 466#undef PACKED_STRUCTS 467 468/* Pathname to the NSD pidfile */ 469#undef PIDFILE 470 471/* Define this to enable rate limiting. */ 472#undef RATELIMIT 473 474/* Define this to set ratelimit to off by default. */ 475#undef RATELIMIT_DEFAULT_OFF 476 477/* Define as the return type of signal handlers (`int' or `void'). */ 478#undef RETSIGTYPE 479 480/* Define this to configure as a root server. */ 481#undef ROOT_SERVER 482 483/* The size of `off_t', as computed by sizeof. */ 484#undef SIZEOF_OFF_T 485 486/* The size of `void*', as computed by sizeof. */ 487#undef SIZEOF_VOIDP 488 489/* Define to 1 if you have the ANSI C header files. */ 490#undef STDC_HEADERS 491 492/* strptime is available from time.h with some defines. */ 493#undef STRPTIME_NEEDS_DEFINES 494 495/* use default strptime. */ 496#undef STRPTIME_WORKS 497 498/* Define to the backlog to be used with listen. */ 499#undef TCP_BACKLOG 500 501/* Define to the default maximum message length. */ 502#undef TCP_MAX_MESSAGE_LEN 503 504/* Define to the default tcp port. */ 505#undef TCP_PORT 506 507/* Define to the default tcp timeout. */ 508#undef TCP_TIMEOUT 509 510/* Define to the default maximum udp message length. */ 511#undef UDP_MAX_MESSAGE_LEN 512 513/* Define to the default udp port. */ 514#undef UDP_PORT 515 516/* the user name to drop privileges to */ 517#undef USER 518 519/* Define to 1 to enable dnstap support */ 520#undef USE_DNSTAP 521 522/* Define if you want to use internal select based events */ 523#undef USE_MINI_EVENT 524 525/* Define this to enable mmap instead of malloc. Experimental. */ 526#undef USE_MMAP_ALLOC 527 528/* Define this to configure to use the radix tree. */ 529#undef USE_RADIX_TREE 530 531/* Enable extensions on AIX 3, Interix. */ 532#ifndef _ALL_SOURCE 533# undef _ALL_SOURCE 534#endif 535/* Enable GNU extensions on systems that have them. */ 536#ifndef _GNU_SOURCE 537# undef _GNU_SOURCE 538#endif 539/* Enable threading extensions on Solaris. */ 540#ifndef _POSIX_PTHREAD_SEMANTICS 541# undef _POSIX_PTHREAD_SEMANTICS 542#endif 543/* Enable extensions on HP NonStop. */ 544#ifndef _TANDEM_SOURCE 545# undef _TANDEM_SOURCE 546#endif 547/* Enable general extensions on Solaris. */ 548#ifndef __EXTENSIONS__ 549# undef __EXTENSIONS__ 550#endif 551 552 553/* Define this to enable per-zone statistics gathering. */ 554#undef USE_ZONE_STATS 555 556/* Define to the NSD version to answer version.server query. */ 557#undef VERSION 558 559/* Pathname to the NSD xfrd zone timer state file. */ 560#undef XFRDFILE 561 562/* Pathname to where the NSD transfer dir is created. */ 563#undef XFRDIR 564 565/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 566 `char[]'. */ 567#undef YYTEXT_POINTER 568 569/* Pathname to the NSD zone list file. */ 570#undef ZONELISTFILE 571 572/* NSD default location for zone files. Empty string or NULL to disable. */ 573#undef ZONESDIR 574 575/* Enable large inode numbers on Mac OS X 10.5. */ 576#ifndef _DARWIN_USE_64_BIT_INODE 577# define _DARWIN_USE_64_BIT_INODE 1 578#endif 579 580/* Number of bits in a file offset, on hosts where this is settable. */ 581#undef _FILE_OFFSET_BITS 582 583/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 584#undef _LARGEFILE_SOURCE 585 586/* Define for large files, on AIX-style hosts. */ 587#undef _LARGE_FILES 588 589/* Define to 1 if on MINIX. */ 590#undef _MINIX 591 592/* Enable for compile on Minix */ 593#undef _NETBSD_SOURCE 594 595/* Define to 2 if the system does not provide POSIX.1 features except with 596 this defined. */ 597#undef _POSIX_1_SOURCE 598 599/* Define to 1 if you need to in order for `stat' and other things to work. */ 600#undef _POSIX_SOURCE 601 602/* Define to empty if `const' does not conform to ANSI C. */ 603#undef const 604 605/* Define to `int' if <sys/types.h> doesn't define. */ 606#undef gid_t 607 608/* in_addr_t */ 609#undef in_addr_t 610 611/* Define to `__inline__' or `__inline' if that's what the C compiler 612 calls it, or to nothing if 'inline' is not supported under any name. */ 613#ifndef __cplusplus 614#undef inline 615#endif 616 617/* Define "int16_t" to "short" if "int16_t" is missing */ 618#undef int16_t 619 620/* Define "int32_t" to "int" if "int32_t" is missing */ 621#undef int32_t 622 623/* Define "int64_t" to "long long" if "int64_t" is missing */ 624#undef int64_t 625 626/* Define "int8_t" to "char" if "int8_t" is missing */ 627#undef int8_t 628 629/* Define to rpl_malloc if the replacement function should be used. */ 630#undef malloc 631 632/* Define to `long int' if <sys/types.h> does not define. */ 633#undef off_t 634 635/* Define to `int' if <sys/types.h> does not define. */ 636#undef pid_t 637 638/* Define "sig_atomic_t" to "int" if "sig_atomic_t" is missing */ 639#undef sig_atomic_t 640 641/* Define to `unsigned int' if <sys/types.h> does not define. */ 642#undef size_t 643 644/* Define "socklen_t" to "int" if "socklen_t" is missing */ 645#undef socklen_t 646 647/* Fallback member name for socket family in struct sockaddr_storage */ 648#undef ss_family 649 650/* Define "ssize_t" to "int" if "ssize_t" is missing */ 651#undef ssize_t 652 653/* Define "suseconds_t" to "time_t" if "suseconds_t" is missing */ 654#undef suseconds_t 655 656/* Define to `int' if <sys/types.h> doesn't define. */ 657#undef uid_t 658 659/* Define "uint16_t" to "unsigned short" if "uint16_t" is missing */ 660#undef uint16_t 661 662/* Define "uint32_t" to "unsigned int" if "uint32_t" is missing */ 663#undef uint32_t 664 665/* Define "uint64_t" to "unsigned long long" if "uint64_t" is missing */ 666#undef uint64_t 667 668/* Define "uint8_t" to "unsigned char" if "uint8_t" is missing */ 669#undef uint8_t 670 671/* Define "uintptr_t" to "void*" if "uintptr_t" is missing */ 672#undef uintptr_t 673 674/* Define as `fork' if `vfork' does not work. */ 675#undef vfork 676 677 678/* define before includes as it specifies what standard to use. */ 679#if (defined(HAVE_PSELECT) && !defined (HAVE_PSELECT_PROTO)) \ 680 || !defined (HAVE_CTIME_R_PROTO) \ 681 || defined (STRPTIME_NEEDS_DEFINES) 682# ifndef _XOPEN_SOURCE 683# define _XOPEN_SOURCE 600 684# endif 685# ifndef _POSIX_C_SOURCE 686# define _POSIX_C_SOURCE 200112 687# endif 688# ifndef _BSD_SOURCE 689# define _BSD_SOURCE 1 690# endif 691# ifndef _DEFAULT_SOURCE 692# define _DEFAULT_SOURCE 1 693# endif 694# ifndef __EXTENSIONS__ 695# define __EXTENSIONS__ 1 696# endif 697# ifndef _STDC_C99 698# define _STDC_C99 1 699# endif 700# ifndef _ALL_SOURCE 701# define _ALL_SOURCE 1 702# endif 703#endif 704 705 706 707#ifdef HAVE_VA_LIST_DOUBLE_DEF 708/* workaround double va_list definition on some platforms */ 709# ifndef _VA_LIST_DEFINED 710# define _VA_LIST_DEFINED 711# endif 712#endif 713 714 715 716#include <sys/types.h> 717#if STDC_HEADERS 718#include <stdlib.h> 719#include <stddef.h> 720#endif 721 722#ifdef HAVE_TIME_H 723#include <time.h> 724#endif 725 726#ifdef HAVE_STDINT_H 727#include <stdint.h> 728#endif 729 730#ifdef HAVE_SYS_SOCKET_H 731#include <sys/socket.h> 732#endif 733 734#ifdef HAVE_NETINET_IN_H 735#include <netinet/in.h> 736#endif 737 738#ifdef HAVE_NETINET_TCP_H 739#include <netinet/tcp.h> 740#endif 741 742#ifdef HAVE_ARPA_INET_H 743#include <arpa/inet.h> 744#endif 745 746/* For Tru64 */ 747#ifdef HAVE_SYS_BITYPES_H 748#include <sys/bitypes.h> 749#endif 750 751 752 753#ifdef HAVE_ATTR_FORMAT 754#define ATTR_FORMAT(archetype, string_index, first_to_check) \ 755 __attribute__ ((format (archetype, string_index, first_to_check))) 756#else /* !HAVE_ATTR_FORMAT */ 757#define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 758#endif /* !HAVE_ATTR_FORMAT */ 759#if defined(__cplusplus) 760#define ATTR_UNUSED(x) 761#elif defined(HAVE_ATTR_UNUSED) 762#define ATTR_UNUSED(x) x __attribute__((unused)) 763#else /* !HAVE_ATTR_UNUSED */ 764#define ATTR_UNUSED(x) x 765#endif /* !HAVE_ATTR_UNUSED */ 766 767 768 769#ifndef IPV6_MIN_MTU 770#define IPV6_MIN_MTU 1280 771#endif /* IPV6_MIN_MTU */ 772 773#ifndef AF_INET6 774#define AF_INET6 28 775#endif /* AF_INET6 */ 776 777 778 779/* maximum nesting of included files */ 780#define MAXINCLUDES 10 781 782 783 784#ifndef HAVE_B64_NTOP 785int b64_ntop(uint8_t const *src, size_t srclength, 786 char *target, size_t targsize); 787#endif /* !HAVE_B64_NTOP */ 788#ifndef HAVE_B64_PTON 789int b64_pton(char const *src, uint8_t *target, size_t targsize); 790#endif /* !HAVE_B64_PTON */ 791#ifndef HAVE_FSEEKO 792#define fseeko fseek 793#define ftello ftell 794#endif /* HAVE_FSEEKO */ 795#ifndef HAVE_SNPRINTF 796#include <stdarg.h> 797int snprintf (char *str, size_t count, const char *fmt, ...); 798int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 799#endif /* HAVE_SNPRINTF */ 800#ifndef HAVE_INET_PTON 801int inet_pton(int af, const char* src, void* dst); 802#endif /* HAVE_INET_PTON */ 803#ifndef HAVE_INET_NTOP 804const char *inet_ntop(int af, const void *src, char *dst, size_t size); 805#endif 806#ifndef HAVE_INET_ATON 807int inet_aton(const char *cp, struct in_addr *addr); 808#endif 809#ifndef HAVE_MEMMOVE 810void *memmove(void *dest, const void *src, size_t n); 811#endif 812#ifndef HAVE_STRLCAT 813size_t strlcat(char *dst, const char *src, size_t siz); 814#endif 815#ifndef HAVE_STRLCPY 816size_t strlcpy(char *dst, const char *src, size_t siz); 817#endif 818#ifndef HAVE_REALLOCARRAY 819void* reallocarray(void *ptr, size_t nmemb, size_t size); 820#endif 821#ifndef HAVE_GETADDRINFO 822#include "compat/fake-rfc2553.h" 823#endif 824#ifndef HAVE_STRPTIME 825#define HAVE_STRPTIME 1 826char *strptime(const char *s, const char *format, struct tm *tm); 827#endif 828#ifndef STRPTIME_WORKS 829#define STRPTIME_WORKS 1 830char *nsd_strptime(const char *s, const char *format, struct tm *tm); 831#define strptime(a,b,c) nsd_strptime((a),(b),(c)) 832#endif 833 834 835 836#ifdef MEMCMP_IS_BROKEN 837#include "compat/memcmp.h" 838#define memcmp memcmp_nsd 839int memcmp(const void *x, const void *y, size_t n); 840#endif 841 842 843#ifndef MAXHOSTNAMELEN 844#define MAXHOSTNAMELEN 256 845#endif 846 847 848 849 850 851/* provide timespec def if not available */ 852#ifndef CONFIG_DEFINES 853#define CONFIG_DEFINES 854#ifndef HAVE_STRUCT_TIMESPEC 855#ifndef __timespec_defined 856#define __timespec_defined 1 857 struct timespec { 858 long tv_sec; /* seconds */ 859 long tv_nsec; /* nanoseconds */ 860 }; 861#endif /* !__timespec_defined */ 862#endif /* !HAVE_STRUCT_TIMESPEC */ 863#endif /* !CONFIG_DEFINES */ 864 865#ifdef PACKED_STRUCTS 866#define ATTR_PACKED __attribute__((packed)) 867#else 868#define ATTR_PACKED 869#endif 870 871