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