1479d8f7dSchristos /* config.h. Generated from config.h.in by configure. */ 2479d8f7dSchristos /* config.h.in. Generated from configure.ac by autoheader. */ 3479d8f7dSchristos 4bd6e42bfSprlw1 /* apply the noreturn attribute to a function that exits the program */ 5bd6e42bfSprlw1 #define ATTR_NORETURN __attribute__((__noreturn__)) 6bd6e42bfSprlw1 7e2d5644aSchristos /* apply the weak attribute to a symbol */ 8e2d5644aSchristos #define ATTR_WEAK __attribute__((__weak__)) 9e2d5644aSchristos 10479d8f7dSchristos /* Define this to enable BIND8 like NSTATS & XSTATS. */ 11479d8f7dSchristos #define BIND8_STATS /**/ 12479d8f7dSchristos 13479d8f7dSchristos /* NSD default chroot directory */ 14479d8f7dSchristos #define CHROOTDIR "/var/chroot/nsd" 15479d8f7dSchristos 16b4110b48Schristos /* Command line arguments used with configure */ 17b4110b48Schristos #define CONFCMDLINE "" 18b4110b48Schristos 19479d8f7dSchristos /* NSD config dir */ 20479d8f7dSchristos #define CONFIGDIR CHROOTDIR "/etc/nsd" 21479d8f7dSchristos 22479d8f7dSchristos /* Pathname to the NSD configuration file */ 23479d8f7dSchristos #define CONFIGFILE CHROOTDIR "/etc/nsd/nsd.conf" 24479d8f7dSchristos 25b4110b48Schristos /* number of arguments for CPU_OR is three */ 26b4110b48Schristos /* #undef CPU_OR_THREE_ARGS */ 27b4110b48Schristos 28479d8f7dSchristos /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 29479d8f7dSchristos */ 30479d8f7dSchristos /* #undef DARWIN_BROKEN_SETREUID */ 31479d8f7dSchristos 32479d8f7dSchristos /* Pathname to the NSD database */ 33479d8f7dSchristos #define DBFILE CHROOTDIR "/var/db/nsd/nsd.db" 34479d8f7dSchristos 35e2d5644aSchristos /* Whether ERR_load_SSL_strings is deprecated */ 36*36f29c42Schristos #define DEPRECATED_ERR_LOAD_SSL_STRINGS 1 37e2d5644aSchristos 38e2d5644aSchristos /* Whether SHA1_Init is deprecated */ 39*36f29c42Schristos #define DEPRECATED_SHA1_INIT 1 40e2d5644aSchristos 41bd6e42bfSprlw1 /* default dnstap socket path */ 42bd6e42bfSprlw1 /* #undef DNSTAP_SOCKET_PATH */ 43bd6e42bfSprlw1 44479d8f7dSchristos /* Define to the default maximum message length with EDNS. */ 45b4110b48Schristos #define EDNS_MAX_MESSAGE_LEN 1232 46479d8f7dSchristos 47479d8f7dSchristos /* Define to the default facility for syslog. */ 48479d8f7dSchristos #define FACILITY LOG_DAEMON 49479d8f7dSchristos 50e25cbffbSchristos /* Define to 1 if you have the `accept4' function. */ 51e25cbffbSchristos #define HAVE_ACCEPT4 1 52e25cbffbSchristos 53479d8f7dSchristos /* Define to 1 if you have the `alarm' function. */ 54479d8f7dSchristos #define HAVE_ALARM 1 55479d8f7dSchristos 56479d8f7dSchristos /* Define to 1 if you have the `arc4random' function. */ 57479d8f7dSchristos #define HAVE_ARC4RANDOM 1 58479d8f7dSchristos 59479d8f7dSchristos /* Define to 1 if you have the `arc4random_uniform' function. */ 60479d8f7dSchristos #define HAVE_ARC4RANDOM_UNIFORM 1 61479d8f7dSchristos 62479d8f7dSchristos /* Define to 1 if you have the <arpa/inet.h> header file. */ 63479d8f7dSchristos #define HAVE_ARPA_INET_H 1 64479d8f7dSchristos 65479d8f7dSchristos /* Whether the C compiler accepts the "format" attribute */ 66479d8f7dSchristos #define HAVE_ATTR_FORMAT 1 67479d8f7dSchristos 68bd6e42bfSprlw1 /* Whether the C compiler accepts the "noreturn" attribute */ 69bd6e42bfSprlw1 #define HAVE_ATTR_NORETURN 1 70bd6e42bfSprlw1 71479d8f7dSchristos /* Whether the C compiler accepts the "unused" attribute */ 72479d8f7dSchristos #define HAVE_ATTR_UNUSED 1 73479d8f7dSchristos 74e2d5644aSchristos /* Whether the C compiler accepts the "weak" attribute */ 75e2d5644aSchristos #define HAVE_ATTR_WEAK 1 76e2d5644aSchristos 77479d8f7dSchristos /* Define to 1 if you have the `b64_ntop' function. */ 78479d8f7dSchristos /* #undef HAVE_B64_NTOP */ 79479d8f7dSchristos 80479d8f7dSchristos /* Define to 1 if you have the `b64_pton' function. */ 81479d8f7dSchristos /* #undef HAVE_B64_PTON */ 82479d8f7dSchristos 83479d8f7dSchristos /* Define to 1 if you have the `basename' function. */ 84479d8f7dSchristos #define HAVE_BASENAME 1 85479d8f7dSchristos 86479d8f7dSchristos /* Define to 1 if your system has a working `chown' function. */ 87479d8f7dSchristos #define HAVE_CHOWN 1 88479d8f7dSchristos 89479d8f7dSchristos /* Define to 1 if you have the `chroot' function. */ 90479d8f7dSchristos #define HAVE_CHROOT 1 91479d8f7dSchristos 92479d8f7dSchristos /* Define to 1 if you have the `clock_gettime' function. */ 93479d8f7dSchristos #define HAVE_CLOCK_GETTIME 1 94479d8f7dSchristos 95b4110b48Schristos /* Define to 1 if the system has the type `cpuid_t'. */ 96b4110b48Schristos #define HAVE_CPUID_T 1 97b4110b48Schristos 98b4110b48Schristos /* Define to 1 if the system has the type `cpuset_t'. */ 99b4110b48Schristos /* #undef HAVE_CPUSET_T */ 100b4110b48Schristos 101b4110b48Schristos /* Define to 1 if the system has the type `cpu_set_t'. */ 102b4110b48Schristos /* #undef HAVE_CPU_SET_T */ 103b4110b48Schristos 1045b490f6cSchristos /* Define to 1 if you have the `CRYPTO_memcmp' function. */ 1055b490f6cSchristos #define HAVE_CRYPTO_MEMCMP 1 1065b490f6cSchristos 107479d8f7dSchristos /* if time.h provides ctime_r prototype */ 108479d8f7dSchristos #define HAVE_CTIME_R_PROTO 1 109479d8f7dSchristos 110b4110b48Schristos /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 111b4110b48Schristos don't. */ 112*36f29c42Schristos #define HAVE_DECL_REALLOCARRAY 1 113b4110b48Schristos 1145b490f6cSchristos /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 1155b490f6cSchristos 0 if you don't. */ 1165b490f6cSchristos #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 1 1175b490f6cSchristos 1185b490f6cSchristos /* Define to 1 if you have the declaration of `SSL_CTX_set_tmp_ecdh', and to 0 1195b490f6cSchristos if you don't. */ 1205b490f6cSchristos #define HAVE_DECL_SSL_CTX_SET_TMP_ECDH 1 1215b490f6cSchristos 122479d8f7dSchristos /* Define to 1 if you have the `dup2' function. */ 123479d8f7dSchristos #define HAVE_DUP2 1 124479d8f7dSchristos 1255b490f6cSchristos /* Define to 1 if you have the `EC_KEY_new_by_curve_name' function. */ 1265b490f6cSchristos #define HAVE_EC_KEY_NEW_BY_CURVE_NAME 1 1275b490f6cSchristos 128479d8f7dSchristos /* Define to 1 if you have the <endian.h> header file. */ 129e25cbffbSchristos #define HAVE_ENDIAN_H 1 130479d8f7dSchristos 131479d8f7dSchristos /* Define to 1 if you have the `endpwent' function. */ 132479d8f7dSchristos #define HAVE_ENDPWENT 1 133479d8f7dSchristos 134479d8f7dSchristos /* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 135bd6e42bfSprlw1 /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */ 136479d8f7dSchristos 137e2d5644aSchristos /* Define to 1 if you have the `ERR_load_SSL_strings' function. */ 138e2d5644aSchristos #define HAVE_ERR_LOAD_SSL_STRINGS 1 139e2d5644aSchristos 140479d8f7dSchristos /* Define to 1 if you have the `event_base_free' function. */ 141479d8f7dSchristos #define HAVE_EVENT_BASE_FREE 1 142479d8f7dSchristos 143479d8f7dSchristos /* Define to 1 if you have the `event_base_get_method' function. */ 144479d8f7dSchristos #define HAVE_EVENT_BASE_GET_METHOD 1 145479d8f7dSchristos 146479d8f7dSchristos /* Define to 1 if you have the `event_base_new' function. */ 147479d8f7dSchristos #define HAVE_EVENT_BASE_NEW 1 148479d8f7dSchristos 149479d8f7dSchristos /* Define to 1 if you have the `event_base_once' function. */ 150479d8f7dSchristos #define HAVE_EVENT_BASE_ONCE 1 151479d8f7dSchristos 152479d8f7dSchristos /* Define to 1 if you have the <event.h> header file. */ 153479d8f7dSchristos #define HAVE_EVENT_H 1 154479d8f7dSchristos 155479d8f7dSchristos /* Define to 1 if you have the `EVP_cleanup' function. */ 156bd6e42bfSprlw1 /* #undef HAVE_EVP_CLEANUP */ 157479d8f7dSchristos 158e2d5644aSchristos /* Define to 1 if you have the `EVP_MAC_CTX_get_mac_size' function. */ 159e2d5644aSchristos /* #undef HAVE_EVP_MAC_CTX_GET_MAC_SIZE */ 160e2d5644aSchristos 161b4110b48Schristos /* Define to 1 if you have the `EVP_MAC_CTX_new' function. */ 162b4110b48Schristos /* #undef HAVE_EVP_MAC_CTX_NEW */ 163b4110b48Schristos 164b4110b48Schristos /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */ 165b4110b48Schristos /* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */ 166b4110b48Schristos 167479d8f7dSchristos /* Define to 1 if you have the `ev_default_loop' function. */ 168479d8f7dSchristos /* #undef HAVE_EV_DEFAULT_LOOP */ 169479d8f7dSchristos 170479d8f7dSchristos /* Define to 1 if you have the `ev_loop' function. */ 171479d8f7dSchristos /* #undef HAVE_EV_LOOP */ 172479d8f7dSchristos 173e2d5644aSchristos /* Define to 1 if you have the `explicit_bzero' function. */ 174e2d5644aSchristos /* #undef HAVE_EXPLICIT_BZERO */ 175e2d5644aSchristos 176479d8f7dSchristos /* Define to 1 if you have the <fcntl.h> header file. */ 177479d8f7dSchristos #define HAVE_FCNTL_H 1 178479d8f7dSchristos 179479d8f7dSchristos /* Define to 1 if you have the `fork' function. */ 180479d8f7dSchristos #define HAVE_FORK 1 181479d8f7dSchristos 182479d8f7dSchristos /* Define to 1 if you have the `freeaddrinfo' function. */ 183479d8f7dSchristos #define HAVE_FREEADDRINFO 1 184479d8f7dSchristos 185479d8f7dSchristos /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 186479d8f7dSchristos #define HAVE_FSEEKO 1 187479d8f7dSchristos 188479d8f7dSchristos /* Define to 1 if you have the `gai_strerror' function. */ 189479d8f7dSchristos #define HAVE_GAI_STRERROR 1 190479d8f7dSchristos 191479d8f7dSchristos /* Define to 1 if you have the `getaddrinfo' function. */ 192479d8f7dSchristos #define HAVE_GETADDRINFO 1 193479d8f7dSchristos 194479d8f7dSchristos /* Define to 1 if you have the `gethostname' function. */ 195479d8f7dSchristos #define HAVE_GETHOSTNAME 1 196479d8f7dSchristos 197b4110b48Schristos /* Define to 1 if you have the `getifaddrs' function. */ 198b4110b48Schristos #define HAVE_GETIFADDRS 1 199b4110b48Schristos 200479d8f7dSchristos /* Define to 1 if you have the `getnameinfo' function. */ 201479d8f7dSchristos #define HAVE_GETNAMEINFO 1 202479d8f7dSchristos 203479d8f7dSchristos /* Define to 1 if you have the `getpwnam' function. */ 204479d8f7dSchristos #define HAVE_GETPWNAM 1 205479d8f7dSchristos 206b4110b48Schristos /* Define to 1 if you have the `getrandom' function. */ 207b4110b48Schristos #define HAVE_GETRANDOM 1 208b4110b48Schristos 209479d8f7dSchristos /* Define to 1 if you have the `glob' function. */ 210479d8f7dSchristos #define HAVE_GLOB 1 211479d8f7dSchristos 212479d8f7dSchristos /* Define to 1 if you have the <glob.h> header file. */ 213479d8f7dSchristos #define HAVE_GLOB_H 1 214479d8f7dSchristos 215479d8f7dSchristos /* Define to 1 if you have the <grp.h> header file. */ 216479d8f7dSchristos #define HAVE_GRP_H 1 217479d8f7dSchristos 218479d8f7dSchristos /* Define to 1 if you have the `HMAC_CTX_new' function. */ 2194a076506Schristos #define HAVE_HMAC_CTX_NEW 1 220479d8f7dSchristos 221479d8f7dSchristos /* Define to 1 if you have the `HMAC_CTX_reset' function. */ 2224a076506Schristos #define HAVE_HMAC_CTX_RESET 1 223479d8f7dSchristos 224e2d5644aSchristos /* Define to 1 if you have the <ifaddrs.h> header file. */ 225e2d5644aSchristos #define HAVE_IFADDRS_H 1 226e2d5644aSchristos 227479d8f7dSchristos /* Define to 1 if you have the `inet_aton' function. */ 228479d8f7dSchristos #define HAVE_INET_ATON 1 229479d8f7dSchristos 230479d8f7dSchristos /* Define to 1 if you have the `inet_ntop' function. */ 231479d8f7dSchristos #define HAVE_INET_NTOP 1 232479d8f7dSchristos 233479d8f7dSchristos /* Define to 1 if you have the `inet_pton' function. */ 234479d8f7dSchristos #define HAVE_INET_PTON 1 235479d8f7dSchristos 236479d8f7dSchristos /* Define to 1 if you have the `initgroups' function. */ 237479d8f7dSchristos #define HAVE_INITGROUPS 1 238479d8f7dSchristos 239479d8f7dSchristos /* Define to 1 if you have the <inttypes.h> header file. */ 240479d8f7dSchristos #define HAVE_INTTYPES_H 1 241479d8f7dSchristos 242479d8f7dSchristos /* Define to 1 if you have the `crypto' library (-lcrypto). */ 243479d8f7dSchristos #define HAVE_LIBCRYPTO 1 244479d8f7dSchristos 245479d8f7dSchristos /* Define to 1 if you have the <limits.h> header file. */ 246479d8f7dSchristos #define HAVE_LIMITS_H 1 247479d8f7dSchristos 248479d8f7dSchristos /* Define to 1 if you have the `localtime_r' function. */ 249479d8f7dSchristos #define HAVE_LOCALTIME_R 1 250479d8f7dSchristos 2514c3efeb7Schristos /* Define to 1 if you have the <login_cap.h> header file. */ 2524c3efeb7Schristos #define HAVE_LOGIN_CAP_H 1 2534c3efeb7Schristos 254479d8f7dSchristos /* Define to 1 if your system has a GNU libc compatible `malloc' function, and 255479d8f7dSchristos to 0 otherwise. */ 256479d8f7dSchristos #define HAVE_MALLOC 1 257479d8f7dSchristos 258479d8f7dSchristos /* Define to 1 if you have the `memcpy' function. */ 259479d8f7dSchristos #define HAVE_MEMCPY 1 260479d8f7dSchristos 261479d8f7dSchristos /* Define to 1 if you have the `memmove' function. */ 262479d8f7dSchristos #define HAVE_MEMMOVE 1 263479d8f7dSchristos 264479d8f7dSchristos /* Define to 1 if you have the <memory.h> header file. */ 265479d8f7dSchristos #define HAVE_MEMORY_H 1 266479d8f7dSchristos 267479d8f7dSchristos /* Define to 1 if you have the `memset' function. */ 268479d8f7dSchristos #define HAVE_MEMSET 1 269479d8f7dSchristos 270479d8f7dSchristos /* Define to 1 if you have the `mmap' function. */ 271479d8f7dSchristos #define HAVE_MMAP 1 272479d8f7dSchristos 2735b490f6cSchristos /* If sys/socket.h has a struct mmsghdr. */ 2745b490f6cSchristos #define HAVE_MMSGHDR 1 2755b490f6cSchristos 276479d8f7dSchristos /* Define to 1 if you have the `munmap' function. */ 277479d8f7dSchristos /* #undef HAVE_MUNMAP */ 278479d8f7dSchristos 279479d8f7dSchristos /* Define to 1 if you have the <netdb.h> header file. */ 280479d8f7dSchristos #define HAVE_NETDB_H 1 281479d8f7dSchristos 282479d8f7dSchristos /* Define to 1 if you have the <netinet/in.h> header file. */ 283479d8f7dSchristos #define HAVE_NETINET_IN_H 1 284479d8f7dSchristos 285479d8f7dSchristos /* Define to 1 if you have the <netinet/tcp.h> header file. */ 286479d8f7dSchristos #define HAVE_NETINET_TCP_H 1 287479d8f7dSchristos 288b4110b48Schristos /* Define to 1 if you have the <openssl/core_names.h> header file. */ 289b4110b48Schristos /* #undef HAVE_OPENSSL_CORE_NAMES_H */ 290b4110b48Schristos 291479d8f7dSchristos /* Define to 1 if you have the <openssl/err.h> header file. */ 292479d8f7dSchristos #define HAVE_OPENSSL_ERR_H 1 293479d8f7dSchristos 294479d8f7dSchristos /* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 295bd6e42bfSprlw1 #define HAVE_OPENSSL_INIT_CRYPTO 1 296479d8f7dSchristos 297479d8f7dSchristos /* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 298bd6e42bfSprlw1 #define HAVE_OPENSSL_INIT_SSL 1 299479d8f7dSchristos 3005b490f6cSchristos /* Define to 1 if you have the <openssl/ocsp.h> header file. */ 3015b490f6cSchristos #define HAVE_OPENSSL_OCSP_H 1 3025b490f6cSchristos 303479d8f7dSchristos /* Define to 1 if you have the <openssl/rand.h> header file. */ 304479d8f7dSchristos #define HAVE_OPENSSL_RAND_H 1 305479d8f7dSchristos 306479d8f7dSchristos /* Define to 1 if you have the <openssl/ssl.h> header file. */ 307479d8f7dSchristos #define HAVE_OPENSSL_SSL_H 1 308479d8f7dSchristos 309479d8f7dSchristos /* Define to 1 if you have the `ppoll' function. */ 310cfa66197Skamil #define HAVE_PPOLL 1 311479d8f7dSchristos 312479d8f7dSchristos /* Define to 1 if you have the `pselect' function. */ 313479d8f7dSchristos #define HAVE_PSELECT 1 314479d8f7dSchristos 315479d8f7dSchristos /* if sys/select.h provides pselect prototype */ 316479d8f7dSchristos #define HAVE_PSELECT_PROTO 1 317479d8f7dSchristos 318479d8f7dSchristos /* Define to 1 if you have the `pwrite' function. */ 319479d8f7dSchristos #define HAVE_PWRITE 1 320479d8f7dSchristos 3215b490f6cSchristos /* If we have reallocarray(3) */ 322479d8f7dSchristos #define HAVE_REALLOCARRAY 1 323479d8f7dSchristos 324479d8f7dSchristos /* Define if recvmmsg is implemented */ 325479d8f7dSchristos #define HAVE_RECVMMSG 1 326479d8f7dSchristos 327b4110b48Schristos /* Define to 1 if you have the <sched.h> header file. */ 328b4110b48Schristos #define HAVE_SCHED_H 1 329b4110b48Schristos 330b4110b48Schristos /* Define this if sched_setaffinity is available */ 331e2d5644aSchristos #define HAVE_SCHED_SETAFFINITY 1 332b4110b48Schristos 333479d8f7dSchristos /* Define if sendmmsg is implemented */ 334479d8f7dSchristos #define HAVE_SENDMMSG 1 335479d8f7dSchristos 336b4110b48Schristos /* Define to 1 if you have the `setproctitle' function. */ 337b4110b48Schristos #define HAVE_SETPROCTITLE 1 338b4110b48Schristos 339479d8f7dSchristos /* Define to 1 if you have the `setregid' function. */ 340479d8f7dSchristos #define HAVE_SETREGID 1 341479d8f7dSchristos 342479d8f7dSchristos /* Define to 1 if you have the `setresgid' function. */ 343479d8f7dSchristos /* #undef HAVE_SETRESGID */ 344479d8f7dSchristos 345479d8f7dSchristos /* Define to 1 if you have the `setresuid' function. */ 346479d8f7dSchristos /* #undef HAVE_SETRESUID */ 347479d8f7dSchristos 348479d8f7dSchristos /* Define to 1 if you have the `setreuid' function. */ 349479d8f7dSchristos #define HAVE_SETREUID 1 350479d8f7dSchristos 351479d8f7dSchristos /* Define to 1 if you have the `setusercontext' function. */ 352479d8f7dSchristos #define HAVE_SETUSERCONTEXT 1 353479d8f7dSchristos 354e2d5644aSchristos /* Define to 1 if you have the `SHA1_Init' function. */ 355e2d5644aSchristos #define HAVE_SHA1_INIT 1 356e2d5644aSchristos 357479d8f7dSchristos /* Define to 1 if you have the `sigaction' function. */ 358479d8f7dSchristos #define HAVE_SIGACTION 1 359479d8f7dSchristos 360479d8f7dSchristos /* Define to 1 if you have the <signal.h> header file. */ 361479d8f7dSchristos #define HAVE_SIGNAL_H 1 362479d8f7dSchristos 363479d8f7dSchristos /* Define to 1 if you have the `sigprocmask' function. */ 364479d8f7dSchristos #define HAVE_SIGPROCMASK 1 365479d8f7dSchristos 366479d8f7dSchristos /* Define to 1 if you have the `snprintf' function. */ 367479d8f7dSchristos #define HAVE_SNPRINTF 1 368479d8f7dSchristos 369479d8f7dSchristos /* Define to 1 if you have the `socket' function. */ 370479d8f7dSchristos #define HAVE_SOCKET 1 371479d8f7dSchristos 372479d8f7dSchristos /* Define if you have the SSL libraries installed. */ 373479d8f7dSchristos #define HAVE_SSL /**/ 374479d8f7dSchristos 3755b490f6cSchristos /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 376e2d5644aSchristos #define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1 377e2d5644aSchristos 378e2d5644aSchristos /* Define to 1 if you have the `SSL_get1_peer_certificate' function. */ 379e2d5644aSchristos /* #undef HAVE_SSL_GET1_PEER_CERTIFICATE */ 3805b490f6cSchristos 381479d8f7dSchristos /* Define to 1 if you have the <stdarg.h> header file. */ 382479d8f7dSchristos #define HAVE_STDARG_H 1 383479d8f7dSchristos 384479d8f7dSchristos /* Define to 1 if you have the <stddef.h> header file. */ 385479d8f7dSchristos #define HAVE_STDDEF_H 1 386479d8f7dSchristos 387479d8f7dSchristos /* Define to 1 if you have the <stdint.h> header file. */ 388479d8f7dSchristos #define HAVE_STDINT_H 1 389479d8f7dSchristos 390479d8f7dSchristos /* Define to 1 if you have the <stdlib.h> header file. */ 391479d8f7dSchristos #define HAVE_STDLIB_H 1 392479d8f7dSchristos 393479d8f7dSchristos /* Define to 1 if you have the `strcasecmp' function. */ 394479d8f7dSchristos #define HAVE_STRCASECMP 1 395479d8f7dSchristos 396479d8f7dSchristos /* Define to 1 if you have the `strchr' function. */ 397479d8f7dSchristos #define HAVE_STRCHR 1 398479d8f7dSchristos 399479d8f7dSchristos /* Define to 1 if you have the `strdup' function. */ 400479d8f7dSchristos #define HAVE_STRDUP 1 401479d8f7dSchristos 402479d8f7dSchristos /* Define to 1 if you have the `strerror' function. */ 403479d8f7dSchristos #define HAVE_STRERROR 1 404479d8f7dSchristos 405479d8f7dSchristos /* Define to 1 if you have the `strftime' function. */ 406479d8f7dSchristos #define HAVE_STRFTIME 1 407479d8f7dSchristos 408479d8f7dSchristos /* Define to 1 if you have the <strings.h> header file. */ 409479d8f7dSchristos #define HAVE_STRINGS_H 1 410479d8f7dSchristos 411479d8f7dSchristos /* Define to 1 if you have the <string.h> header file. */ 412479d8f7dSchristos #define HAVE_STRING_H 1 413479d8f7dSchristos 414479d8f7dSchristos /* Define to 1 if you have the `strlcat' function. */ 415479d8f7dSchristos #define HAVE_STRLCAT 1 416479d8f7dSchristos 417479d8f7dSchristos /* Define to 1 if you have the `strlcpy' function. */ 418479d8f7dSchristos #define HAVE_STRLCPY 1 419479d8f7dSchristos 420479d8f7dSchristos /* Define to 1 if you have the `strncasecmp' function. */ 421479d8f7dSchristos #define HAVE_STRNCASECMP 1 422479d8f7dSchristos 423479d8f7dSchristos /* Define to 1 if you have the `strptime' function. */ 424479d8f7dSchristos #define HAVE_STRPTIME 1 425479d8f7dSchristos 426479d8f7dSchristos /* Define to 1 if you have the `strtol' function. */ 427479d8f7dSchristos #define HAVE_STRTOL 1 428479d8f7dSchristos 429e25cbffbSchristos /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 430e25cbffbSchristos #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 431e25cbffbSchristos 432479d8f7dSchristos /* Define to 1 if `st_mtimensec' is a member of `struct stat'. */ 433479d8f7dSchristos #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 434479d8f7dSchristos 435479d8f7dSchristos /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ 436479d8f7dSchristos #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 437479d8f7dSchristos 438479d8f7dSchristos /* If time.h has a struct timespec (for pselect). */ 439479d8f7dSchristos #define HAVE_STRUCT_TIMESPEC 1 440479d8f7dSchristos 441b4110b48Schristos /* Define to 1 if you have the `sysconf' function. */ 442b4110b48Schristos /* #undef HAVE_SYSCONF */ 443b4110b48Schristos 444479d8f7dSchristos /* Define to 1 if you have the <syslog.h> header file. */ 445479d8f7dSchristos #define HAVE_SYSLOG_H 1 446479d8f7dSchristos 447b4110b48Schristos /* Define to 1 if systemd should be used */ 448b4110b48Schristos /* #undef HAVE_SYSTEMD */ 449b4110b48Schristos 450479d8f7dSchristos /* Define to 1 if you have the <sys/bitypes.h> header file. */ 451479d8f7dSchristos /* #undef HAVE_SYS_BITYPES_H */ 452479d8f7dSchristos 453b4110b48Schristos /* Define to 1 if you have the <sys/cpuset.h> header file. */ 454b4110b48Schristos /* #undef HAVE_SYS_CPUSET_H */ 455b4110b48Schristos 456479d8f7dSchristos /* Define to 1 if you have the <sys/mman.h> header file. */ 457e2d5644aSchristos #define HAVE_SYS_MMAN_H 1 458479d8f7dSchristos 459479d8f7dSchristos /* Define to 1 if you have the <sys/param.h> header file. */ 460479d8f7dSchristos #define HAVE_SYS_PARAM_H 1 461479d8f7dSchristos 462b4110b48Schristos /* Define to 1 if you have the <sys/random.h> header file. */ 463b4110b48Schristos #define HAVE_SYS_RANDOM_H 1 464b4110b48Schristos 465479d8f7dSchristos /* Define to 1 if you have the <sys/select.h> header file. */ 466479d8f7dSchristos #define HAVE_SYS_SELECT_H 1 467479d8f7dSchristos 468479d8f7dSchristos /* Define to 1 if you have the <sys/socket.h> header file. */ 469479d8f7dSchristos #define HAVE_SYS_SOCKET_H 1 470479d8f7dSchristos 471479d8f7dSchristos /* Define to 1 if you have the <sys/stat.h> header file. */ 472479d8f7dSchristos #define HAVE_SYS_STAT_H 1 473479d8f7dSchristos 474479d8f7dSchristos /* Define to 1 if you have the <sys/types.h> header file. */ 475479d8f7dSchristos #define HAVE_SYS_TYPES_H 1 476479d8f7dSchristos 477e25cbffbSchristos /* Define to 1 if you have the <sys/un.h> header file. */ 478e25cbffbSchristos #define HAVE_SYS_UN_H 1 479e25cbffbSchristos 480479d8f7dSchristos /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 481479d8f7dSchristos #define HAVE_SYS_WAIT_H 1 482479d8f7dSchristos 483479d8f7dSchristos /* Define to 1 if you have the <tcpd.h> header file. */ 484479d8f7dSchristos #define HAVE_TCPD_H 1 485479d8f7dSchristos 486479d8f7dSchristos /* Define to 1 if you have the <time.h> header file. */ 487479d8f7dSchristos #define HAVE_TIME_H 1 488479d8f7dSchristos 489e2d5644aSchristos /* Define if TLS 1.3 is supported by OpenSSL */ 490e2d5644aSchristos #define HAVE_TLS_1_3 1 491e2d5644aSchristos 492479d8f7dSchristos /* Define to 1 if you have the `tzset' function. */ 493479d8f7dSchristos #define HAVE_TZSET 1 494479d8f7dSchristos 495479d8f7dSchristos /* Define to 1 if you have the <unistd.h> header file. */ 496479d8f7dSchristos #define HAVE_UNISTD_H 1 497479d8f7dSchristos 498479d8f7dSchristos /* Define this if you have double va_list definitions. */ 499479d8f7dSchristos /* #undef HAVE_VA_LIST_DOUBLE_DEF */ 500479d8f7dSchristos 501479d8f7dSchristos /* Define to 1 if you have the `vfork' function. */ 502479d8f7dSchristos #define HAVE_VFORK 1 503479d8f7dSchristos 504479d8f7dSchristos /* Define to 1 if you have the <vfork.h> header file. */ 505479d8f7dSchristos /* #undef HAVE_VFORK_H */ 506479d8f7dSchristos 507479d8f7dSchristos /* Define to 1 if `fork' works. */ 508479d8f7dSchristos #define HAVE_WORKING_FORK 1 509479d8f7dSchristos 510479d8f7dSchristos /* Define to 1 if `vfork' works. */ 511479d8f7dSchristos #define HAVE_WORKING_VFORK 1 512479d8f7dSchristos 513479d8f7dSchristos /* Define to 1 if you have the `writev' function. */ 514479d8f7dSchristos #define HAVE_WRITEV 1 515479d8f7dSchristos 516479d8f7dSchristos /* Define to the default nsd identity. */ 517479d8f7dSchristos #define IDENTITY "NetBSD server" 518479d8f7dSchristos 519479d8f7dSchristos /* Define this to enable IPv6 support. */ 520e2d5644aSchristos /* #undef INET6 **/ 521479d8f7dSchristos 522479d8f7dSchristos /* If flex defines yy_current_buffer as a macro */ 523479d8f7dSchristos /* #undef LEX_DEFINES_YY_CURRENT_BUFFER */ 524479d8f7dSchristos 525479d8f7dSchristos /* Define to the maximum message length to pass to syslog. */ 526479d8f7dSchristos #define MAXSYSLOGMSGLEN 512 527479d8f7dSchristos 528e25cbffbSchristos /* Define this to cleanup memory at exit (eg. for valgrind, etc.) */ 529e25cbffbSchristos /* #undef MEMCLEAN */ 530e25cbffbSchristos 531479d8f7dSchristos /* Define if memcmp() does not compare unsigned bytes */ 532479d8f7dSchristos /* #undef MEMCMP_IS_BROKEN */ 533479d8f7dSchristos 534479d8f7dSchristos /* Define this to enable response minimalization to reduce truncation. */ 535479d8f7dSchristos #define MINIMAL_RESPONSES /**/ 536479d8f7dSchristos 537479d8f7dSchristos /* Define if mkdir has one argument. */ 538479d8f7dSchristos /* #undef MKDIR_HAS_ONE_ARG */ 539479d8f7dSchristos 540479d8f7dSchristos /* Undefine this to enable internal runtime checks. */ 541479d8f7dSchristos #define NDEBUG /**/ 542479d8f7dSchristos 543479d8f7dSchristos /* Define if the network stack does not fully support nonblocking io (causes 544479d8f7dSchristos lower performance). */ 545479d8f7dSchristos /* #undef NONBLOCKING_IS_BROKEN */ 546479d8f7dSchristos 547479d8f7dSchristos /* Define to the default nsd-control port. */ 548479d8f7dSchristos #define NSD_CONTROL_PORT 8952 549479d8f7dSchristos 550479d8f7dSchristos /* Define to nsd-control proto version. */ 551479d8f7dSchristos #define NSD_CONTROL_VERSION 1 552479d8f7dSchristos 553479d8f7dSchristos /* Pathname to start nsd from nsd-control */ 554479d8f7dSchristos #define NSD_START_PATH "/usr/sbin/nsd" 555479d8f7dSchristos 556479d8f7dSchristos /* Define this to enable NSEC3 support. */ 557479d8f7dSchristos #define NSEC3 /**/ 558479d8f7dSchristos 559479d8f7dSchristos /* Define to the address where bug reports for this package should be sent. */ 560*36f29c42Schristos #define PACKAGE_BUGREPORT "https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl" 561479d8f7dSchristos 562479d8f7dSchristos /* Define to the full name of this package. */ 563479d8f7dSchristos #define PACKAGE_NAME "NSD" 564479d8f7dSchristos 565479d8f7dSchristos /* Define to the full name and version of this package. */ 566*36f29c42Schristos #define PACKAGE_STRING "NSD 4.8.0" 567479d8f7dSchristos 568479d8f7dSchristos /* Define to the one symbol short name of this package. */ 569479d8f7dSchristos #define PACKAGE_TARNAME "nsd" 570479d8f7dSchristos 571479d8f7dSchristos /* Define to the home page for this package. */ 572479d8f7dSchristos #define PACKAGE_URL "" 573479d8f7dSchristos 574479d8f7dSchristos /* Define to the version of this package. */ 575e2d5644aSchristos #define PACKAGE_VERSION "4.6.0" 5764a076506Schristos 5774a076506Schristos /* Define this to use packed structure alignment. */ 5784a076506Schristos /* #undef PACKED_STRUCTS */ 579479d8f7dSchristos 580479d8f7dSchristos /* Pathname to the NSD pidfile */ 581479d8f7dSchristos #define PIDFILE CHROOTDIR "/var/run/nsd.pid" 582479d8f7dSchristos 583479d8f7dSchristos /* Define this to enable rate limiting. */ 584479d8f7dSchristos #define RATELIMIT 1 585479d8f7dSchristos 586479d8f7dSchristos /* Define this to set ratelimit to off by default. */ 587e2d5644aSchristos #define RATELIMIT_DEFAULT_OFF 1 588479d8f7dSchristos 589b4110b48Schristos /* If reallocarray needs defines to appear in the headers */ 590b4110b48Schristos #define REALLOCARRAY_NEEDS_DEFINES 1 591b4110b48Schristos 592b4110b48Schristos /* Return type of signal handlers, but autoconf 2.70 says 'your code may 593b4110b48Schristos safely assume C89 semantics that RETSIGTYPE is void.' */ 594479d8f7dSchristos #define RETSIGTYPE void 595479d8f7dSchristos 596479d8f7dSchristos /* Define this to configure as a root server. */ 597479d8f7dSchristos /* #undef ROOT_SERVER */ 598479d8f7dSchristos 599479d8f7dSchristos /* The size of `off_t', as computed by sizeof. */ 600479d8f7dSchristos #define SIZEOF_OFF_T 8 601479d8f7dSchristos 602479d8f7dSchristos /* The size of `void*', as computed by sizeof. */ 603479d8f7dSchristos #define SIZEOF_VOIDP 8 604479d8f7dSchristos 605479d8f7dSchristos /* Define to 1 if you have the ANSI C header files. */ 606479d8f7dSchristos #define STDC_HEADERS 1 607479d8f7dSchristos 608479d8f7dSchristos /* strptime is available from time.h with some defines. */ 609479d8f7dSchristos /* #undef STRPTIME_NEEDS_DEFINES */ 610479d8f7dSchristos 611479d8f7dSchristos /* use default strptime. */ 612479d8f7dSchristos #define STRPTIME_WORKS 1 613479d8f7dSchristos 614479d8f7dSchristos /* Define to the backlog to be used with listen. */ 615479d8f7dSchristos #define TCP_BACKLOG 256 616479d8f7dSchristos 617479d8f7dSchristos /* Define to the default maximum message length. */ 618479d8f7dSchristos #define TCP_MAX_MESSAGE_LEN 65535 619479d8f7dSchristos 620479d8f7dSchristos /* Define to the default tcp port. */ 621479d8f7dSchristos #define TCP_PORT "53" 622479d8f7dSchristos 623479d8f7dSchristos /* Define to the default tcp timeout. */ 624479d8f7dSchristos #define TCP_TIMEOUT 120 625479d8f7dSchristos 6265b490f6cSchristos /* Define to the default DNS over TLS port. */ 6275b490f6cSchristos #define TLS_PORT "853" 6285b490f6cSchristos 629479d8f7dSchristos /* Define to the default maximum udp message length. */ 630479d8f7dSchristos #define UDP_MAX_MESSAGE_LEN 512 631479d8f7dSchristos 632479d8f7dSchristos /* Define to the default udp port. */ 633479d8f7dSchristos #define UDP_PORT "53" 634479d8f7dSchristos 635479d8f7dSchristos /* the user name to drop privileges to */ 636479d8f7dSchristos #define USER "_nsd" 637479d8f7dSchristos 638bd6e42bfSprlw1 /* Define to 1 to enable dnstap support */ 639bd6e42bfSprlw1 /* #undef USE_DNSTAP */ 640bd6e42bfSprlw1 641479d8f7dSchristos /* Define if you want to use internal select based events */ 642479d8f7dSchristos /* #undef USE_MINI_EVENT */ 643479d8f7dSchristos 644479d8f7dSchristos /* Define this to enable mmap instead of malloc. Experimental. */ 645479d8f7dSchristos /* #undef USE_MMAP_ALLOC */ 646479d8f7dSchristos 647479d8f7dSchristos /* Define this to configure to use the radix tree. */ 648479d8f7dSchristos #define USE_RADIX_TREE /**/ 649479d8f7dSchristos 650479d8f7dSchristos /* Enable extensions on AIX 3, Interix. */ 651479d8f7dSchristos #ifndef _ALL_SOURCE 652479d8f7dSchristos # define _ALL_SOURCE 1 653479d8f7dSchristos #endif 654479d8f7dSchristos /* Enable GNU extensions on systems that have them. */ 655479d8f7dSchristos #ifndef _GNU_SOURCE 656479d8f7dSchristos # define _GNU_SOURCE 1 657479d8f7dSchristos #endif 658479d8f7dSchristos /* Enable threading extensions on Solaris. */ 659479d8f7dSchristos #ifndef _POSIX_PTHREAD_SEMANTICS 660479d8f7dSchristos # define _POSIX_PTHREAD_SEMANTICS 1 661479d8f7dSchristos #endif 662479d8f7dSchristos /* Enable extensions on HP NonStop. */ 663479d8f7dSchristos #ifndef _TANDEM_SOURCE 664479d8f7dSchristos # define _TANDEM_SOURCE 1 665479d8f7dSchristos #endif 666479d8f7dSchristos /* Enable general extensions on Solaris. */ 667479d8f7dSchristos #ifndef __EXTENSIONS__ 668479d8f7dSchristos # define __EXTENSIONS__ 1 669479d8f7dSchristos #endif 670479d8f7dSchristos 671479d8f7dSchristos 6725b490f6cSchristos /* Define this to enable TCP fast open. */ 6735b490f6cSchristos /* #undef USE_TCP_FASTOPEN */ 6745b490f6cSchristos 675479d8f7dSchristos /* Define this to enable per-zone statistics gathering. */ 676e2d5644aSchristos #define USE_ZONE_STATS 1 677e2d5644aSchristos 678e2d5644aSchristos /* Define to the default zone verification udp port. */ 679e2d5644aSchristos #define VERIFY_PORT "5347" 680479d8f7dSchristos 681479d8f7dSchristos /* Define to the NSD version to answer version.server query. */ 682479d8f7dSchristos #define VERSION PACKAGE_STRING 683479d8f7dSchristos 684479d8f7dSchristos /* Pathname to the NSD xfrd zone timer state file. */ 685479d8f7dSchristos #define XFRDFILE CHROOTDIR "/var/db/nsd/xfrd.state" 686479d8f7dSchristos 687479d8f7dSchristos /* Pathname to where the NSD transfer dir is created. */ 688479d8f7dSchristos #define XFRDIR CHROOTDIR "/var/tmp" 689479d8f7dSchristos 690479d8f7dSchristos /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 691479d8f7dSchristos `char[]'. */ 692479d8f7dSchristos #define YYTEXT_POINTER 1 693479d8f7dSchristos 694479d8f7dSchristos /* Pathname to the NSD zone list file. */ 695479d8f7dSchristos #define ZONELISTFILE CHROOTDIR "/var/db/nsd/zone.list" 696479d8f7dSchristos 697479d8f7dSchristos /* NSD default location for zone files. Empty string or NULL to disable. */ 698479d8f7dSchristos #define ZONESDIR CHROOTDIR "/etc/nsd" 699479d8f7dSchristos 700479d8f7dSchristos /* Enable large inode numbers on Mac OS X 10.5. */ 701479d8f7dSchristos #ifndef _DARWIN_USE_64_BIT_INODE 702479d8f7dSchristos # define _DARWIN_USE_64_BIT_INODE 1 703479d8f7dSchristos #endif 704479d8f7dSchristos 705479d8f7dSchristos /* Number of bits in a file offset, on hosts where this is settable. */ 706479d8f7dSchristos /* #undef _FILE_OFFSET_BITS */ 707479d8f7dSchristos 708479d8f7dSchristos /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 709479d8f7dSchristos /* #undef _LARGEFILE_SOURCE */ 710479d8f7dSchristos 711479d8f7dSchristos /* Define for large files, on AIX-style hosts. */ 712479d8f7dSchristos /* #undef _LARGE_FILES */ 713479d8f7dSchristos 714479d8f7dSchristos /* Define to 1 if on MINIX. */ 715479d8f7dSchristos /* #undef _MINIX */ 716479d8f7dSchristos 717479d8f7dSchristos /* Enable for compile on Minix */ 718479d8f7dSchristos /* #undef _NETBSD_SOURCE */ 719479d8f7dSchristos 720479d8f7dSchristos /* Define to 2 if the system does not provide POSIX.1 features except with 721479d8f7dSchristos this defined. */ 722479d8f7dSchristos /* #undef _POSIX_1_SOURCE */ 723479d8f7dSchristos 724479d8f7dSchristos /* Define to 1 if you need to in order for `stat' and other things to work. */ 725479d8f7dSchristos /* #undef _POSIX_SOURCE */ 726479d8f7dSchristos 727479d8f7dSchristos /* Define to empty if `const' does not conform to ANSI C. */ 728479d8f7dSchristos /* #undef const */ 729479d8f7dSchristos 730479d8f7dSchristos /* Define to `int' if <sys/types.h> doesn't define. */ 731479d8f7dSchristos /* #undef gid_t */ 732479d8f7dSchristos 733479d8f7dSchristos /* in_addr_t */ 734479d8f7dSchristos /* #undef in_addr_t */ 735479d8f7dSchristos 736479d8f7dSchristos /* Define to `__inline__' or `__inline' if that's what the C compiler 737479d8f7dSchristos calls it, or to nothing if 'inline' is not supported under any name. */ 738479d8f7dSchristos #ifndef __cplusplus 739479d8f7dSchristos /* #undef inline */ 740479d8f7dSchristos #endif 741479d8f7dSchristos 742479d8f7dSchristos /* Define "int16_t" to "short" if "int16_t" is missing */ 743479d8f7dSchristos /* #undef int16_t */ 744479d8f7dSchristos 745479d8f7dSchristos /* Define "int32_t" to "int" if "int32_t" is missing */ 746479d8f7dSchristos /* #undef int32_t */ 747479d8f7dSchristos 748479d8f7dSchristos /* Define "int64_t" to "long long" if "int64_t" is missing */ 749479d8f7dSchristos /* #undef int64_t */ 750479d8f7dSchristos 751479d8f7dSchristos /* Define "int8_t" to "char" if "int8_t" is missing */ 752479d8f7dSchristos /* #undef int8_t */ 753479d8f7dSchristos 754479d8f7dSchristos /* Define to rpl_malloc if the replacement function should be used. */ 755479d8f7dSchristos /* #undef malloc */ 756479d8f7dSchristos 757479d8f7dSchristos /* Define to `long int' if <sys/types.h> does not define. */ 758479d8f7dSchristos /* #undef off_t */ 759479d8f7dSchristos 760479d8f7dSchristos /* Define to `int' if <sys/types.h> does not define. */ 761479d8f7dSchristos /* #undef pid_t */ 762479d8f7dSchristos 763479d8f7dSchristos /* Define "sig_atomic_t" to "int" if "sig_atomic_t" is missing */ 764479d8f7dSchristos /* #undef sig_atomic_t */ 765479d8f7dSchristos 766479d8f7dSchristos /* Define to `unsigned int' if <sys/types.h> does not define. */ 767479d8f7dSchristos /* #undef size_t */ 768479d8f7dSchristos 769479d8f7dSchristos /* Define "socklen_t" to "int" if "socklen_t" is missing */ 770479d8f7dSchristos /* #undef socklen_t */ 771479d8f7dSchristos 772479d8f7dSchristos /* Fallback member name for socket family in struct sockaddr_storage */ 773479d8f7dSchristos /* #undef ss_family */ 774479d8f7dSchristos 775479d8f7dSchristos /* Define "ssize_t" to "int" if "ssize_t" is missing */ 776479d8f7dSchristos /* #undef ssize_t */ 777479d8f7dSchristos 778479d8f7dSchristos /* Define "suseconds_t" to "time_t" if "suseconds_t" is missing */ 779479d8f7dSchristos /* #undef suseconds_t */ 780479d8f7dSchristos 781479d8f7dSchristos /* Define to `int' if <sys/types.h> doesn't define. */ 782479d8f7dSchristos /* #undef uid_t */ 783479d8f7dSchristos 784479d8f7dSchristos /* Define "uint16_t" to "unsigned short" if "uint16_t" is missing */ 785479d8f7dSchristos /* #undef uint16_t */ 786479d8f7dSchristos 787479d8f7dSchristos /* Define "uint32_t" to "unsigned int" if "uint32_t" is missing */ 788479d8f7dSchristos /* #undef uint32_t */ 789479d8f7dSchristos 790479d8f7dSchristos /* Define "uint64_t" to "unsigned long long" if "uint64_t" is missing */ 791479d8f7dSchristos /* #undef uint64_t */ 792479d8f7dSchristos 793479d8f7dSchristos /* Define "uint8_t" to "unsigned char" if "uint8_t" is missing */ 794479d8f7dSchristos /* #undef uint8_t */ 795479d8f7dSchristos 796479d8f7dSchristos /* Define "uintptr_t" to "void*" if "uintptr_t" is missing */ 797479d8f7dSchristos /* #undef uintptr_t */ 798479d8f7dSchristos 799479d8f7dSchristos /* Define as `fork' if `vfork' does not work. */ 800479d8f7dSchristos /* #undef vfork */ 801479d8f7dSchristos 802479d8f7dSchristos 803479d8f7dSchristos /* define before includes as it specifies what standard to use. */ 804479d8f7dSchristos #if (defined(HAVE_PSELECT) && !defined (HAVE_PSELECT_PROTO)) \ 805479d8f7dSchristos || !defined (HAVE_CTIME_R_PROTO) \ 806b4110b48Schristos || defined (STRPTIME_NEEDS_DEFINES) || defined(REALLOCARRAY_NEEDS_DEFINES) 807479d8f7dSchristos # ifndef _XOPEN_SOURCE 808479d8f7dSchristos # define _XOPEN_SOURCE 600 809479d8f7dSchristos # endif 810479d8f7dSchristos # ifndef _POSIX_C_SOURCE 811479d8f7dSchristos # define _POSIX_C_SOURCE 200112 812479d8f7dSchristos # endif 813479d8f7dSchristos # ifndef _BSD_SOURCE 814479d8f7dSchristos # define _BSD_SOURCE 1 815479d8f7dSchristos # endif 8165b490f6cSchristos # ifndef _OPENBSD_SOURCE 8175b490f6cSchristos # define _OPENBSD_SOURCE 1 8185b490f6cSchristos # endif 819479d8f7dSchristos # ifndef _DEFAULT_SOURCE 820479d8f7dSchristos # define _DEFAULT_SOURCE 1 821479d8f7dSchristos # endif 822479d8f7dSchristos # ifndef __EXTENSIONS__ 823479d8f7dSchristos # define __EXTENSIONS__ 1 824479d8f7dSchristos # endif 825479d8f7dSchristos # ifndef _STDC_C99 826479d8f7dSchristos # define _STDC_C99 1 827479d8f7dSchristos # endif 828479d8f7dSchristos # ifndef _ALL_SOURCE 829479d8f7dSchristos # define _ALL_SOURCE 1 830479d8f7dSchristos # endif 831479d8f7dSchristos #endif 832479d8f7dSchristos 833479d8f7dSchristos 834479d8f7dSchristos 835479d8f7dSchristos #ifdef HAVE_VA_LIST_DOUBLE_DEF 836479d8f7dSchristos /* workaround double va_list definition on some platforms */ 837479d8f7dSchristos # ifndef _VA_LIST_DEFINED 838479d8f7dSchristos # define _VA_LIST_DEFINED 839479d8f7dSchristos # endif 840479d8f7dSchristos #endif 841479d8f7dSchristos 842479d8f7dSchristos 843479d8f7dSchristos 844479d8f7dSchristos #include <sys/types.h> 845479d8f7dSchristos #include <stdlib.h> 846479d8f7dSchristos #include <stddef.h> 847*36f29c42Schristos #include <string.h> 848479d8f7dSchristos 849479d8f7dSchristos #ifdef HAVE_TIME_H 850479d8f7dSchristos #include <time.h> 851479d8f7dSchristos #endif 852479d8f7dSchristos 853479d8f7dSchristos #ifdef HAVE_STDINT_H 854479d8f7dSchristos #include <stdint.h> 855479d8f7dSchristos #endif 856479d8f7dSchristos 857479d8f7dSchristos #ifdef HAVE_SYS_SOCKET_H 858479d8f7dSchristos #include <sys/socket.h> 859479d8f7dSchristos #endif 860479d8f7dSchristos 861479d8f7dSchristos #ifdef HAVE_NETINET_IN_H 862479d8f7dSchristos #include <netinet/in.h> 863479d8f7dSchristos #endif 864479d8f7dSchristos 865479d8f7dSchristos #ifdef HAVE_NETINET_TCP_H 866479d8f7dSchristos #include <netinet/tcp.h> 867479d8f7dSchristos #endif 868479d8f7dSchristos 869479d8f7dSchristos #ifdef HAVE_ARPA_INET_H 870479d8f7dSchristos #include <arpa/inet.h> 871479d8f7dSchristos #endif 872479d8f7dSchristos 873479d8f7dSchristos /* For Tru64 */ 874479d8f7dSchristos #ifdef HAVE_SYS_BITYPES_H 875479d8f7dSchristos #include <sys/bitypes.h> 876479d8f7dSchristos #endif 877479d8f7dSchristos 878479d8f7dSchristos 879479d8f7dSchristos 880479d8f7dSchristos #ifdef HAVE_ATTR_FORMAT 881479d8f7dSchristos #define ATTR_FORMAT(archetype, string_index, first_to_check) \ 882479d8f7dSchristos __attribute__ ((format (archetype, string_index, first_to_check))) 883479d8f7dSchristos #else /* !HAVE_ATTR_FORMAT */ 884479d8f7dSchristos #define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 885479d8f7dSchristos #endif /* !HAVE_ATTR_FORMAT */ 886479d8f7dSchristos #if defined(__cplusplus) 887479d8f7dSchristos #define ATTR_UNUSED(x) 888479d8f7dSchristos #elif defined(HAVE_ATTR_UNUSED) 889e2d5644aSchristos #define ATTR_UNUSED(x) x __attribute__((__unused__)) 890479d8f7dSchristos #else /* !HAVE_ATTR_UNUSED */ 891479d8f7dSchristos #define ATTR_UNUSED(x) x 892479d8f7dSchristos #endif /* !HAVE_ATTR_UNUSED */ 893479d8f7dSchristos 894479d8f7dSchristos 895479d8f7dSchristos 896479d8f7dSchristos #ifndef IPV6_MIN_MTU 897479d8f7dSchristos #define IPV6_MIN_MTU 1280 898479d8f7dSchristos #endif /* IPV6_MIN_MTU */ 899479d8f7dSchristos 900479d8f7dSchristos #ifndef AF_INET6 901479d8f7dSchristos #define AF_INET6 28 902479d8f7dSchristos #endif /* AF_INET6 */ 903479d8f7dSchristos 904479d8f7dSchristos 905479d8f7dSchristos 906479d8f7dSchristos /* maximum nesting of included files */ 907479d8f7dSchristos #define MAXINCLUDES 10 908479d8f7dSchristos 909479d8f7dSchristos 910479d8f7dSchristos 911479d8f7dSchristos #ifndef HAVE_B64_NTOP 912479d8f7dSchristos int b64_ntop(uint8_t const *src, size_t srclength, 913479d8f7dSchristos char *target, size_t targsize); 914479d8f7dSchristos #endif /* !HAVE_B64_NTOP */ 915479d8f7dSchristos #ifndef HAVE_B64_PTON 916479d8f7dSchristos int b64_pton(char const *src, uint8_t *target, size_t targsize); 917479d8f7dSchristos #endif /* !HAVE_B64_PTON */ 918479d8f7dSchristos #ifndef HAVE_FSEEKO 919479d8f7dSchristos #define fseeko fseek 920479d8f7dSchristos #define ftello ftell 921479d8f7dSchristos #endif /* HAVE_FSEEKO */ 922479d8f7dSchristos #ifndef HAVE_SNPRINTF 923479d8f7dSchristos #include <stdarg.h> 924479d8f7dSchristos int snprintf (char *str, size_t count, const char *fmt, ...); 925479d8f7dSchristos int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 926479d8f7dSchristos #endif /* HAVE_SNPRINTF */ 927479d8f7dSchristos #ifndef HAVE_INET_PTON 928479d8f7dSchristos int inet_pton(int af, const char* src, void* dst); 929479d8f7dSchristos #endif /* HAVE_INET_PTON */ 930479d8f7dSchristos #ifndef HAVE_INET_NTOP 931479d8f7dSchristos const char *inet_ntop(int af, const void *src, char *dst, size_t size); 932479d8f7dSchristos #endif 933479d8f7dSchristos #ifndef HAVE_INET_ATON 934479d8f7dSchristos int inet_aton(const char *cp, struct in_addr *addr); 935479d8f7dSchristos #endif 936479d8f7dSchristos #ifndef HAVE_MEMMOVE 937479d8f7dSchristos void *memmove(void *dest, const void *src, size_t n); 938479d8f7dSchristos #endif 939e2d5644aSchristos #ifndef HAVE_EXPLICIT_BZERO 940e2d5644aSchristos #define explicit_bzero(a, b) explicit_memset((a), 0, (b)) 941e2d5644aSchristos #endif 942479d8f7dSchristos #ifndef HAVE_STRLCAT 943479d8f7dSchristos size_t strlcat(char *dst, const char *src, size_t siz); 944479d8f7dSchristos #endif 945479d8f7dSchristos #ifndef HAVE_STRLCPY 946479d8f7dSchristos size_t strlcpy(char *dst, const char *src, size_t siz); 947479d8f7dSchristos #endif 948479d8f7dSchristos #ifndef HAVE_REALLOCARRAY 949479d8f7dSchristos void* reallocarray(void *ptr, size_t nmemb, size_t size); 950479d8f7dSchristos #endif 951479d8f7dSchristos #ifndef HAVE_GETADDRINFO 952479d8f7dSchristos #include "compat/fake-rfc2553.h" 953479d8f7dSchristos #endif 954479d8f7dSchristos #ifndef HAVE_STRPTIME 955479d8f7dSchristos #define HAVE_STRPTIME 1 956479d8f7dSchristos char *strptime(const char *s, const char *format, struct tm *tm); 957479d8f7dSchristos #endif 958479d8f7dSchristos #ifndef STRPTIME_WORKS 959479d8f7dSchristos #define STRPTIME_WORKS 1 960479d8f7dSchristos char *nsd_strptime(const char *s, const char *format, struct tm *tm); 961479d8f7dSchristos #define strptime(a,b,c) nsd_strptime((a),(b),(c)) 962479d8f7dSchristos #endif 963b4110b48Schristos #if (HAVE_CPU_SET_T || HAVE_CPUSET_T) 964b4110b48Schristos #include "compat/cpuset.h" 965b4110b48Schristos #endif 966b4110b48Schristos #ifndef HAVE_SETPROCTITLE 967b4110b48Schristos #ifdef __linux__ 968b4110b48Schristos #define HAVE_SETPROCTITLE 1 969b4110b48Schristos #include <stdarg.h> 970b4110b48Schristos void setproctitle(const char *fmt, ...); 971b4110b48Schristos #endif 972b4110b48Schristos #endif 973479d8f7dSchristos 974479d8f7dSchristos 975479d8f7dSchristos 976479d8f7dSchristos #ifdef MEMCMP_IS_BROKEN 977479d8f7dSchristos #include "compat/memcmp.h" 978479d8f7dSchristos #define memcmp memcmp_nsd 979479d8f7dSchristos int memcmp(const void *x, const void *y, size_t n); 980479d8f7dSchristos #endif 981479d8f7dSchristos 982479d8f7dSchristos 983479d8f7dSchristos #ifndef MAXHOSTNAMELEN 984479d8f7dSchristos #define MAXHOSTNAMELEN 256 985479d8f7dSchristos #endif 986479d8f7dSchristos 987479d8f7dSchristos 988479d8f7dSchristos 989479d8f7dSchristos 990479d8f7dSchristos 991479d8f7dSchristos /* provide timespec def if not available */ 992479d8f7dSchristos #ifndef CONFIG_DEFINES 993479d8f7dSchristos #define CONFIG_DEFINES 994479d8f7dSchristos #ifndef HAVE_STRUCT_TIMESPEC 995479d8f7dSchristos #ifndef __timespec_defined 996479d8f7dSchristos #define __timespec_defined 1 997479d8f7dSchristos struct timespec { 998479d8f7dSchristos long tv_sec; /* seconds */ 999479d8f7dSchristos long tv_nsec; /* nanoseconds */ 1000479d8f7dSchristos }; 1001479d8f7dSchristos #endif /* !__timespec_defined */ 1002479d8f7dSchristos #endif /* !HAVE_STRUCT_TIMESPEC */ 1003479d8f7dSchristos #endif /* !CONFIG_DEFINES */ 1004479d8f7dSchristos 10054a076506Schristos #ifdef PACKED_STRUCTS 10064a076506Schristos #define ATTR_PACKED __attribute__((__packed__)) 10074a076506Schristos #else 10084a076506Schristos #define ATTR_PACKED 10094a076506Schristos #endif 10105b490f6cSchristos 1011