xref: /netbsd-src/external/bsd/unbound/include/config.h (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /* config.h.  Generated from config.h.in by configure.  */
2 /* config.h.in.  Generated from configure.ac by autoheader.  */
3 
4 /* apply the noreturn attribute to a function that exits the program */
5 #define ATTR_NORETURN __attribute__((__noreturn__))
6 
7 /* apply the weak attribute to a symbol */
8 #define ATTR_WEAK __attribute__((__weak__))
9 
10 /* Directory to chroot to */
11 #define CHROOT_DIR "/var/chroot/unbound"
12 
13 /* Define this to enable client subnet option. */
14 /* #undef CLIENT_SUBNET */
15 
16 /* Do sha512 definitions in config.h */
17 /* #undef COMPAT_SHA512 */
18 
19 /* Command line arguments used with configure */
20 #define CONFCMDLINE ""
21 
22 /* Pathname to the Unbound configuration file */
23 #define CONFIGFILE "/etc/unbound/unbound.conf"
24 
25 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
26    */
27 /* #undef DARWIN_BROKEN_SETREUID */
28 
29 /* Whether daemon is deprecated */
30 /* #undef DEPRECATED_DAEMON */
31 
32 /* Define this to enable kernel based UDP source port randomization. */
33 /* #undef DISABLE_EXPLICIT_PORT_RANDOMISATION */
34 
35 /* default dnstap socket path */
36 /* #undef DNSTAP_SOCKET_PATH */
37 
38 /* Define if you want to use debug lock checking (slow). */
39 /* #undef ENABLE_LOCK_CHECKS */
40 
41 /* Define this if you enabled-allsymbols from libunbound to link binaries to
42    it for smaller install size, but the libunbound export table is polluted by
43    internal symbols */
44 /* #undef EXPORT_ALL_SYMBOLS */
45 
46 /* Define to 1 if you have the `accept4' function. */
47 #define HAVE_ACCEPT4 1
48 
49 /* Define to 1 if you have the `arc4random' function. */
50 #define HAVE_ARC4RANDOM 1
51 
52 /* Define to 1 if you have the `arc4random_uniform' function. */
53 #define HAVE_ARC4RANDOM_UNIFORM 1
54 
55 /* Define to 1 if you have the <arpa/inet.h> header file. */
56 #define HAVE_ARPA_INET_H 1
57 
58 /* Whether the C compiler accepts the "format" attribute */
59 #define HAVE_ATTR_FORMAT 1
60 
61 /* Whether the C compiler accepts the "noreturn" attribute */
62 #define HAVE_ATTR_NORETURN 1
63 
64 /* Whether the C compiler accepts the "unused" attribute */
65 #define HAVE_ATTR_UNUSED 1
66 
67 /* Whether the C compiler accepts the "weak" attribute */
68 #define HAVE_ATTR_WEAK 1
69 
70 /* If we have be64toh */
71 #define HAVE_BE64TOH 1
72 
73 /* Define to 1 if you have the <bsd/stdlib.h> header file. */
74 /* #undef HAVE_BSD_STDLIB_H */
75 
76 /* Define to 1 if you have the <bsd/string.h> header file. */
77 /* #undef HAVE_BSD_STRING_H */
78 
79 /* Define to 1 if you have the `chown' function. */
80 #define HAVE_CHOWN 1
81 
82 /* Define to 1 if you have the `chroot' function. */
83 #define HAVE_CHROOT 1
84 
85 /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
86 /* #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA */
87 
88 /* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
89 /* #undef HAVE_CRYPTO_THREADID_SET_CALLBACK */
90 
91 /* Define to 1 if you have the `ctime_r' function. */
92 #define HAVE_CTIME_R 1
93 
94 /* Define to 1 if you have the `daemon' function. */
95 #define HAVE_DAEMON 1
96 
97 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
98    don't. */
99 /* #undef HAVE_DECL_ARC4RANDOM */
100 
101 /* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
102    if you don't. */
103 /* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */
104 
105 /* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if
106    you don't. */
107 /* #undef HAVE_DECL_EVSIGNAL_ASSIGN */
108 
109 /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
110    don't. */
111 #define HAVE_DECL_INET_NTOP 1
112 
113 /* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
114    don't. */
115 #define HAVE_DECL_INET_PTON 1
116 
117 /* Define to 1 if you have the declaration of `nghttp2_session_server_new',
118    and to 0 if you don't. */
119 /* #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW */
120 
121 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
122    don't. */
123 #define HAVE_DECL_NID_ED25519 1
124 
125 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
126    don't. */
127 #define HAVE_DECL_NID_ED448 1
128 
129 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
130    don't. */
131 #define HAVE_DECL_NID_SECP384R1 1
132 
133 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
134    if you don't. */
135 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
136 
137 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
138    don't. */
139 #define HAVE_DECL_REALLOCARRAY 0
140 
141 /* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
142    don't. */
143 /* #undef HAVE_DECL_REDISCONNECT */
144 
145 /* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
146    if you don't. */
147 #define HAVE_DECL_SK_SSL_COMP_POP_FREE 1
148 
149 /* Define to 1 if you have the declaration of
150    `SSL_COMP_get_compression_methods', and to 0 if you don't. */
151 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1
152 
153 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
154    0 if you don't. */
155 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 1
156 
157 /* Define to 1 if you have the declaration of `strlcat', and to 0 if you
158    don't. */
159 /* #undef HAVE_DECL_STRLCAT */
160 
161 /* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
162    don't. */
163 /* #undef HAVE_DECL_STRLCPY */
164 
165 /* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
166    you don't. */
167 #define HAVE_DECL_XML_STOPPARSER 1
168 
169 /* Define to 1 if you have the <dlfcn.h> header file. */
170 #define HAVE_DLFCN_H 1
171 
172 /* Define to 1 if you have the `DSA_SIG_set0' function. */
173 #define HAVE_DSA_SIG_SET0 1
174 
175 /* Define to 1 if you have the <endian.h> header file. */
176 #define HAVE_ENDIAN_H 1
177 
178 /* Define to 1 if you have the `endprotoent' function. */
179 #define HAVE_ENDPROTOENT 1
180 
181 /* Define to 1 if you have the `endpwent' function. */
182 #define HAVE_ENDPWENT 1
183 
184 /* Define to 1 if you have the `endservent' function. */
185 #define HAVE_ENDSERVENT 1
186 
187 /* Define to 1 if you have the `ENGINE_cleanup' function. */
188 /* #undef HAVE_ENGINE_CLEANUP */
189 
190 /* Define to 1 if you have the `ERR_free_strings' function. */
191 /* #undef HAVE_ERR_FREE_STRINGS */
192 
193 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
194 /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
195 
196 /* Define to 1 if you have the `event_assign' function. */
197 #define HAVE_EVENT_ASSIGN 1
198 
199 /* Define to 1 if you have the `event_base_free' function. */
200 #define HAVE_EVENT_BASE_FREE 1
201 
202 /* Define to 1 if you have the `event_base_get_method' function. */
203 #define HAVE_EVENT_BASE_GET_METHOD 1
204 
205 /* Define to 1 if you have the `event_base_new' function. */
206 #define HAVE_EVENT_BASE_NEW 1
207 
208 /* Define to 1 if you have the `event_base_once' function. */
209 #define HAVE_EVENT_BASE_ONCE 1
210 
211 /* Define to 1 if you have the <event.h> header file. */
212 #define HAVE_EVENT_H 1
213 
214 /* Define to 1 if you have the `EVP_aes_256_cbc' function. */
215 #define HAVE_EVP_AES_256_CBC 1
216 
217 /* Define to 1 if you have the `EVP_cleanup' function. */
218 /* #undef HAVE_EVP_CLEANUP */
219 
220 /* Define to 1 if you have the `EVP_DigestVerify' function. */
221 #define HAVE_EVP_DIGESTVERIFY 1
222 
223 /* Define to 1 if you have the `EVP_dss1' function. */
224 /* #undef HAVE_EVP_DSS1 */
225 
226 /* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
227 #define HAVE_EVP_ENCRYPTINIT_EX 1
228 
229 /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
230 /* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */
231 
232 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
233 #define HAVE_EVP_MD_CTX_NEW 1
234 
235 /* Define to 1 if you have the `EVP_sha1' function. */
236 #define HAVE_EVP_SHA1 1
237 
238 /* Define to 1 if you have the `EVP_sha256' function. */
239 #define HAVE_EVP_SHA256 1
240 
241 /* Define to 1 if you have the `EVP_sha512' function. */
242 #define HAVE_EVP_SHA512 1
243 
244 /* Define to 1 if you have the `ev_default_loop' function. */
245 /* #undef HAVE_EV_DEFAULT_LOOP */
246 
247 /* Define to 1 if you have the `ev_loop' function. */
248 /* #undef HAVE_EV_LOOP */
249 
250 /* Define to 1 if you have the <expat.h> header file. */
251 #define HAVE_EXPAT_H 1
252 
253 /* Define to 1 if you have the `explicit_bzero' function. */
254 /* #undef HAVE_EXPLICIT_BZERO */
255 
256 /* Define to 1 if you have the `fcntl' function. */
257 #define HAVE_FCNTL 1
258 
259 /* Define to 1 if you have the `FIPS_mode' function. */
260 #define HAVE_FIPS_MODE 1
261 
262 /* Define to 1 if you have the `fork' function. */
263 #define HAVE_FORK 1
264 
265 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
266 #define HAVE_FSEEKO 1
267 
268 /* Define to 1 if you have the `fsync' function. */
269 #define HAVE_FSYNC 1
270 
271 /* Whether getaddrinfo is available */
272 #define HAVE_GETADDRINFO 1
273 
274 /* Define to 1 if you have the `getauxval' function. */
275 /* #undef HAVE_GETAUXVAL */
276 
277 /* Define to 1 if you have the `getentropy' function. */
278 /* #undef HAVE_GETENTROPY */
279 
280 /* Define to 1 if you have the `getifaddrs' function. */
281 #define HAVE_GETIFADDRS 1
282 
283 /* Define to 1 if you have the <getopt.h> header file. */
284 #define HAVE_GETOPT_H 1
285 
286 /* Define to 1 if you have the `getpwnam' function. */
287 #define HAVE_GETPWNAM 1
288 
289 /* Define to 1 if you have the `getrlimit' function. */
290 #define HAVE_GETRLIMIT 1
291 
292 /* Define to 1 if you have the `glob' function. */
293 #define HAVE_GLOB 1
294 
295 /* Define to 1 if you have the <glob.h> header file. */
296 #define HAVE_GLOB_H 1
297 
298 /* Define to 1 if you have the `gmtime_r' function. */
299 #define HAVE_GMTIME_R 1
300 
301 /* Define to 1 if you have the <grp.h> header file. */
302 #define HAVE_GRP_H 1
303 
304 /* Define to 1 if you have the <hiredis/hiredis.h> header file. */
305 /* #undef HAVE_HIREDIS_HIREDIS_H */
306 
307 /* Define to 1 if you have the `HMAC_Init_ex' function. */
308 #define HAVE_HMAC_INIT_EX 1
309 
310 /* If we have htobe64 */
311 #define HAVE_HTOBE64 1
312 
313 /* Define to 1 if you have the <ifaddrs.h> header file. */
314 #define HAVE_IFADDRS_H 1
315 
316 /* Define to 1 if you have the `inet_aton' function. */
317 #define HAVE_INET_ATON 1
318 
319 /* Define to 1 if you have the `inet_ntop' function. */
320 #define HAVE_INET_NTOP 1
321 
322 /* Define to 1 if you have the `inet_pton' function. */
323 #define HAVE_INET_PTON 1
324 
325 /* Define to 1 if you have the `initgroups' function. */
326 #define HAVE_INITGROUPS 1
327 
328 /* Define to 1 if you have the <inttypes.h> header file. */
329 #define HAVE_INTTYPES_H 1
330 
331 /* if the function 'ioctlsocket' is available */
332 /* #undef HAVE_IOCTLSOCKET */
333 
334 /* Define to 1 if you have the <iphlpapi.h> header file. */
335 /* #undef HAVE_IPHLPAPI_H */
336 
337 /* Define to 1 if you have the `isblank' function. */
338 #define HAVE_ISBLANK 1
339 
340 /* Define to 1 if you have the `kill' function. */
341 #define HAVE_KILL 1
342 
343 /* Use portable libbsd functions */
344 /* #undef HAVE_LIBBSD */
345 
346 /* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
347 /* #undef HAVE_LIBKERN_OSBYTEORDER_H */
348 
349 /* Define if we have LibreSSL */
350 /* #undef HAVE_LIBRESSL */
351 
352 /* Define to 1 if you have the `localtime_r' function. */
353 #define HAVE_LOCALTIME_R 1
354 
355 /* Define to 1 if you have the <login_cap.h> header file. */
356 #define HAVE_LOGIN_CAP_H 1
357 
358 /* If have GNU libc compatible malloc */
359 #define HAVE_MALLOC 1
360 
361 /* Define to 1 if you have the `memmove' function. */
362 #define HAVE_MEMMOVE 1
363 
364 /* Define to 1 if you have the <memory.h> header file. */
365 #define HAVE_MEMORY_H 1
366 
367 /* Define to 1 if you have the <netdb.h> header file. */
368 #define HAVE_NETDB_H 1
369 
370 /* Define to 1 if you have the <netinet/in.h> header file. */
371 #define HAVE_NETINET_IN_H 1
372 
373 /* Define to 1 if you have the <netinet/tcp.h> header file. */
374 #define HAVE_NETINET_TCP_H 1
375 
376 /* Use libnettle for crypto */
377 /* #undef HAVE_NETTLE */
378 
379 /* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
380 /* #undef HAVE_NETTLE_DSA_COMPAT_H */
381 
382 /* Define to 1 if you have the <nettle/eddsa.h> header file. */
383 /* #undef HAVE_NETTLE_EDDSA_H */
384 
385 /* Define to 1 if you have the <net/if.h> header file. */
386 #define HAVE_NET_IF_H 1
387 
388 /* Define this to use nghttp2 client. */
389 /* #undef HAVE_NGHTTP2 */
390 
391 /* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */
392 /* #undef HAVE_NGHTTP2_NGHTTP2_H */
393 
394 /* Use libnss for crypto */
395 /* #undef HAVE_NSS */
396 
397 /* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
398 /* #undef HAVE_OPENSSL_ADD_ALL_DIGESTS */
399 
400 /* Define to 1 if you have the <openssl/bn.h> header file. */
401 #define HAVE_OPENSSL_BN_H 1
402 
403 /* Define to 1 if you have the `OPENSSL_config' function. */
404 #define HAVE_OPENSSL_CONFIG 1
405 
406 /* Define to 1 if you have the <openssl/conf.h> header file. */
407 #define HAVE_OPENSSL_CONF_H 1
408 
409 /* Define to 1 if you have the <openssl/core_names.h> header file. */
410 /* #undef HAVE_OPENSSL_CORE_NAMES_H */
411 
412 /* Define to 1 if you have the <openssl/dh.h> header file. */
413 #define HAVE_OPENSSL_DH_H 1
414 
415 /* Define to 1 if you have the <openssl/dsa.h> header file. */
416 #define HAVE_OPENSSL_DSA_H 1
417 
418 /* Define to 1 if you have the <openssl/engine.h> header file. */
419 #define HAVE_OPENSSL_ENGINE_H 1
420 
421 /* Define to 1 if you have the <openssl/err.h> header file. */
422 #define HAVE_OPENSSL_ERR_H 1
423 
424 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
425 #define HAVE_OPENSSL_INIT_CRYPTO 1
426 
427 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
428 #define HAVE_OPENSSL_INIT_SSL 1
429 
430 /* Define to 1 if you have the <openssl/rand.h> header file. */
431 #define HAVE_OPENSSL_RAND_H 1
432 
433 /* Define to 1 if you have the <openssl/rsa.h> header file. */
434 #define HAVE_OPENSSL_RSA_H 1
435 
436 /* Define to 1 if you have the <openssl/ssl.h> header file. */
437 #define HAVE_OPENSSL_SSL_H 1
438 
439 /* Define if you have POSIX threads libraries and header files. */
440 #define HAVE_PTHREAD 1
441 
442 /* Have PTHREAD_PRIO_INHERIT. */
443 #define HAVE_PTHREAD_PRIO_INHERIT 1
444 
445 /* Define to 1 if the system has the type `pthread_rwlock_t'. */
446 #define HAVE_PTHREAD_RWLOCK_T 1
447 
448 /* Define to 1 if the system has the type `pthread_spinlock_t'. */
449 #define HAVE_PTHREAD_SPINLOCK_T 1
450 
451 /* Define to 1 if you have the <pwd.h> header file. */
452 #define HAVE_PWD_H 1
453 
454 /* Define if you have Python libraries and header files. */
455 /* #undef HAVE_PYTHON */
456 
457 /* Define to 1 if you have the `random' function. */
458 #define HAVE_RANDOM 1
459 
460 /* Define to 1 if you have the `RAND_cleanup' function. */
461 /* #undef HAVE_RAND_CLEANUP */
462 
463 /* If we have reallocarray(3) */
464 #define HAVE_REALLOCARRAY 1
465 
466 /* Define to 1 if you have the `recvmsg' function. */
467 #define HAVE_RECVMSG 1
468 
469 /* Define to 1 if you have the `sendmsg' function. */
470 #define HAVE_SENDMSG 1
471 
472 /* Define to 1 if you have the `setregid' function. */
473 #define HAVE_SETREGID 1
474 
475 /* Define to 1 if you have the `setresgid' function. */
476 /* #undef HAVE_SETRESGID */
477 
478 /* Define to 1 if you have the `setresuid' function. */
479 /* #undef HAVE_SETRESUID */
480 
481 /* Define to 1 if you have the `setreuid' function. */
482 #define HAVE_SETREUID 1
483 
484 /* Define to 1 if you have the `setrlimit' function. */
485 #define HAVE_SETRLIMIT 1
486 
487 /* Define to 1 if you have the `setsid' function. */
488 #define HAVE_SETSID 1
489 
490 /* Define to 1 if you have the `setusercontext' function. */
491 #define HAVE_SETUSERCONTEXT 1
492 
493 /* Define to 1 if you have the `SHA512_Update' function. */
494 /* #undef HAVE_SHA512_UPDATE */
495 
496 /* Define to 1 if you have the `shmget' function. */
497 #define HAVE_SHMGET 1
498 
499 /* Define to 1 if you have the `sigprocmask' function. */
500 #define HAVE_SIGPROCMASK 1
501 
502 /* Define to 1 if you have the `sleep' function. */
503 #define HAVE_SLEEP 1
504 
505 /* Define to 1 if you have the `snprintf' function. */
506 #define HAVE_SNPRINTF 1
507 
508 /* Define to 1 if you have the `socketpair' function. */
509 #define HAVE_SOCKETPAIR 1
510 
511 /* Using Solaris threads */
512 /* #undef HAVE_SOLARIS_THREADS */
513 
514 /* Define to 1 if you have the `srandom' function. */
515 #define HAVE_SRANDOM 1
516 
517 /* Define if you have the SSL libraries installed. */
518 #define HAVE_SSL /**/
519 
520 /* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */
521 #define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1
522 
523 /* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
524 #define HAVE_SSL_CTX_SET_CIPHERSUITES 1
525 
526 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
527 #define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1
528 
529 /* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb'
530    function. */
531 /* #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB */
532 
533 /* Define to 1 if you have the `SSL_get0_peername' function. */
534 #define HAVE_SSL_GET0_PEERNAME 1
535 
536 /* Define to 1 if you have the `SSL_set1_host' function. */
537 #define HAVE_SSL_SET1_HOST 1
538 
539 /* Define to 1 if you have the <stdarg.h> header file. */
540 #define HAVE_STDARG_H 1
541 
542 /* Define to 1 if you have the <stdbool.h> header file. */
543 #define HAVE_STDBOOL_H 1
544 
545 /* Define to 1 if you have the <stdint.h> header file. */
546 #define HAVE_STDINT_H 1
547 
548 /* Define to 1 if you have the <stdlib.h> header file. */
549 #define HAVE_STDLIB_H 1
550 
551 /* Define to 1 if you have the `strftime' function. */
552 #define HAVE_STRFTIME 1
553 
554 /* Define to 1 if you have the <strings.h> header file. */
555 #define HAVE_STRINGS_H 1
556 
557 /* Define to 1 if you have the <string.h> header file. */
558 #define HAVE_STRING_H 1
559 
560 /* Define to 1 if you have the `strlcat' function. */
561 #define HAVE_STRLCAT 1
562 
563 /* Define to 1 if you have the `strlcpy' function. */
564 #define HAVE_STRLCPY 1
565 
566 /* Define to 1 if you have the `strptime' function. */
567 #define HAVE_STRPTIME 1
568 
569 /* Define to 1 if you have the `strsep' function. */
570 #define HAVE_STRSEP 1
571 
572 /* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
573 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
574 
575 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
576 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
577 
578 /* Define if you have Swig libraries and header files. */
579 /* #undef HAVE_SWIG */
580 
581 /* Define to 1 if you have the <syslog.h> header file. */
582 #define HAVE_SYSLOG_H 1
583 
584 /* Define to 1 if systemd should be used */
585 /* #undef HAVE_SYSTEMD */
586 
587 /* Define to 1 if you have the <sys/endian.h> header file. */
588 #define HAVE_SYS_ENDIAN_H 1
589 
590 /* Define to 1 if you have the <sys/ipc.h> header file. */
591 #define HAVE_SYS_IPC_H 1
592 
593 /* Define to 1 if you have the <sys/param.h> header file. */
594 #define HAVE_SYS_PARAM_H 1
595 
596 /* Define to 1 if you have the <sys/resource.h> header file. */
597 #define HAVE_SYS_RESOURCE_H 1
598 
599 /* Define to 1 if you have the <sys/select.h> header file. */
600 #define HAVE_SYS_SELECT_H 1
601 
602 /* Define to 1 if you have the <sys/sha2.h> header file. */
603 /* #undef HAVE_SYS_SHA2_H */
604 
605 /* Define to 1 if you have the <sys/shm.h> header file. */
606 #define HAVE_SYS_SHM_H 1
607 
608 /* Define to 1 if you have the <sys/socket.h> header file. */
609 #define HAVE_SYS_SOCKET_H 1
610 
611 /* Define to 1 if you have the <sys/stat.h> header file. */
612 #define HAVE_SYS_STAT_H 1
613 
614 /* Define to 1 if you have the <sys/sysctl.h> header file. */
615 /* #undef HAVE_SYS_SYSCTL_H */
616 
617 /* Define to 1 if you have the <sys/types.h> header file. */
618 #define HAVE_SYS_TYPES_H 1
619 
620 /* Define to 1 if you have the <sys/uio.h> header file. */
621 #define HAVE_SYS_UIO_H 1
622 
623 /* Define to 1 if you have the <sys/un.h> header file. */
624 #define HAVE_SYS_UN_H 1
625 
626 /* Define to 1 if you have the <sys/wait.h> header file. */
627 #define HAVE_SYS_WAIT_H 1
628 
629 /* Define to 1 if you have the <TargetConditionals.h> header file. */
630 /* #undef HAVE_TARGETCONDITIONALS_H */
631 
632 /* Define to 1 if you have the <time.h> header file. */
633 #define HAVE_TIME_H 1
634 
635 /* Define to 1 if you have the `tzset' function. */
636 #define HAVE_TZSET 1
637 
638 /* Define to 1 if you have the <unistd.h> header file. */
639 #define HAVE_UNISTD_H 1
640 
641 /* Define to 1 if you have the `usleep' function. */
642 #define HAVE_USLEEP 1
643 
644 /* Define to 1 if you have the `vfork' function. */
645 #define HAVE_VFORK 1
646 
647 /* Define to 1 if you have the <vfork.h> header file. */
648 /* #undef HAVE_VFORK_H */
649 
650 /* Define to 1 if you have the <windows.h> header file. */
651 /* #undef HAVE_WINDOWS_H */
652 
653 /* Using Windows threads */
654 /* #undef HAVE_WINDOWS_THREADS */
655 
656 /* Define to 1 if you have the <winsock2.h> header file. */
657 /* #undef HAVE_WINSOCK2_H */
658 
659 /* Define to 1 if `fork' works. */
660 #define HAVE_WORKING_FORK 1
661 
662 /* Define to 1 if `vfork' works. */
663 #define HAVE_WORKING_VFORK 1
664 
665 /* Define to 1 if you have the `writev' function. */
666 #define HAVE_WRITEV 1
667 
668 /* Define to 1 if you have the <ws2tcpip.h> header file. */
669 /* #undef HAVE_WS2TCPIP_H */
670 
671 /* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
672 #define HAVE_X509_VERIFY_PARAM_SET1_HOST 1
673 
674 /* Define to 1 if you have the `_beginthreadex' function. */
675 /* #undef HAVE__BEGINTHREADEX */
676 
677 /* If HMAC_Init_ex() returns void */
678 /* #undef HMAC_INIT_EX_RETURNS_VOID */
679 
680 /* if lex has yylex_destroy */
681 #define LEX_HAS_YYLEX_DESTROY 1
682 
683 /* Define to the sub-directory where libtool stores uninstalled libraries. */
684 #define LT_OBJDIR ".libs/"
685 
686 /* Define to the maximum message length to pass to syslog. */
687 #define MAXSYSLOGMSGLEN 10240
688 
689 /* Define if memcmp() does not compare unsigned bytes */
690 /* #undef MEMCMP_IS_BROKEN */
691 
692 /* Define if mkdir has one argument. */
693 /* #undef MKDIR_HAS_ONE_ARG */
694 
695 /* Define if the network stack does not fully support nonblocking io (causes
696    lower performance). */
697 /* #undef NONBLOCKING_IS_BROKEN */
698 
699 /* Put -D_ALL_SOURCE define in config.h */
700 /* #undef OMITTED__D_ALL_SOURCE */
701 
702 /* Put -D_BSD_SOURCE define in config.h */
703 /* #undef OMITTED__D_BSD_SOURCE */
704 
705 /* Put -D_DEFAULT_SOURCE define in config.h */
706 /* #undef OMITTED__D_DEFAULT_SOURCE */
707 
708 /* Put -D_GNU_SOURCE define in config.h */
709 /* #undef OMITTED__D_GNU_SOURCE */
710 
711 /* Put -D_LARGEFILE_SOURCE=1 define in config.h */
712 /* #undef OMITTED__D_LARGEFILE_SOURCE_1 */
713 
714 /* Put -D_POSIX_C_SOURCE=200112 define in config.h */
715 /* #undef OMITTED__D_POSIX_C_SOURCE_200112 */
716 
717 /* Put -D_XOPEN_SOURCE=600 define in config.h */
718 /* #undef OMITTED__D_XOPEN_SOURCE_600 */
719 
720 /* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
721 /* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */
722 
723 /* Put -D__EXTENSIONS__ define in config.h */
724 /* #undef OMITTED__D__EXTENSIONS__ */
725 
726 /* Define to the address where bug reports for this package should be sent. */
727 #define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues"
728 
729 /* Define to the full name of this package. */
730 #define PACKAGE_NAME "unbound"
731 
732 /* Define to the full name and version of this package. */
733 #define PACKAGE_STRING "unbound 1.13.1"
734 
735 /* Define to the one symbol short name of this package. */
736 #define PACKAGE_TARNAME "unbound"
737 
738 /* Define to the home page for this package. */
739 #define PACKAGE_URL ""
740 
741 /* Define to the version of this package. */
742 #define PACKAGE_VERSION "1.13.1"
743 
744 /* default pidfile location */
745 #define PIDFILE "/var/run/unbound.pid"
746 
747 /* Define to necessary symbol if this constant uses a non-standard name on
748    your system. */
749 /* #undef PTHREAD_CREATE_JOINABLE */
750 
751 /* Return type of signal handlers, but autoconf 2.70 says 'your code may
752    safely assume C89 semantics that RETSIGTYPE is void.' */
753 #define RETSIGTYPE void
754 
755 /* if REUSEPORT is enabled by default */
756 #define REUSEPORT_DEFAULT 0
757 
758 /* default rootkey location */
759 #define ROOT_ANCHOR_FILE "/etc/unbound/root.key"
760 
761 /* default rootcert location */
762 #define ROOT_CERT_FILE "/etc/unbound/icannbundle.pem"
763 
764 /* version number for resource files */
765 #define RSRC_PACKAGE_VERSION 1,13,1,0
766 
767 /* Directory to chdir to */
768 #define RUN_DIR "/etc/unbound"
769 
770 /* Shared data */
771 #define SHARE_DIR "/etc/unbound"
772 
773 /* The size of `size_t', as computed by sizeof. */
774 #define SIZEOF_SIZE_T 8
775 
776 /* The size of `time_t', as computed by sizeof. */
777 #define SIZEOF_TIME_T 8
778 
779 /* define if (v)snprintf does not return length needed, (but length used) */
780 /* #undef SNPRINTF_RET_BROKEN */
781 
782 /* Define to 1 if libsodium supports sodium_set_misuse_handler */
783 /* #undef SODIUM_MISUSE_HANDLER */
784 
785 /* Define to 1 if you have the ANSI C header files. */
786 #define STDC_HEADERS 1
787 
788 /* use default strptime. */
789 #define STRPTIME_WORKS 1
790 
791 /* Use win32 resources and API */
792 /* #undef UB_ON_WINDOWS */
793 
794 /* the SYSLOG_FACILITY to use, default LOG_DAEMON */
795 #define UB_SYSLOG_FACILITY LOG_DAEMON
796 
797 /* default username */
798 #define UB_USERNAME "_unbound"
799 
800 /* use to enable lightweight alloc assertions, for debug use */
801 /* #undef UNBOUND_ALLOC_LITE */
802 
803 /* use malloc not regions, for debug use */
804 /* #undef UNBOUND_ALLOC_NONREGIONAL */
805 
806 /* use statistics for allocs and frees, for debug use */
807 /* #undef UNBOUND_ALLOC_STATS */
808 
809 /* define this to enable debug checks. */
810 /* #undef UNBOUND_DEBUG */
811 
812 /* Define to 1 to use cachedb support */
813 /* #undef USE_CACHEDB */
814 
815 /* Define to 1 to enable dnscrypt support */
816 /* #undef USE_DNSCRYPT */
817 
818 /* Define to 1 to enable dnscrypt with xchacha20 support */
819 /* #undef USE_DNSCRYPT_XCHACHA20 */
820 
821 /* Define to 1 to enable dnstap support */
822 /* #undef USE_DNSTAP */
823 
824 /* Define this to enable DSA support. */
825 /* #undef USE_DSA */
826 
827 /* Define this to enable ECDSA support. */
828 #define USE_ECDSA 1
829 
830 /* Define this to enable an EVP workaround for older openssl */
831 /* #undef USE_ECDSA_EVP_WORKAROUND */
832 
833 /* Define this to enable ED25519 support. */
834 #define USE_ED25519 1
835 
836 /* Define this to enable ED448 support. */
837 #define USE_ED448 1
838 
839 /* Define this to enable GOST support. */
840 /* #undef USE_GOST */
841 
842 /* Define to 1 to use ipsecmod support. */
843 /* #undef USE_IPSECMOD */
844 
845 /* Define to 1 to use ipset support */
846 /* #undef USE_IPSET */
847 
848 /* Define if you enable libevent */
849 #define USE_LIBEVENT 1
850 
851 /* Define if you want to use internal select based events */
852 /* #undef USE_MINI_EVENT */
853 
854 /* Define this to enable client TCP Fast Open. */
855 /* #undef USE_MSG_FASTOPEN */
856 
857 /* Define this to enable client TCP Fast Open. */
858 /* #undef USE_OSX_MSG_FASTOPEN */
859 
860 /* Define this to use hiredis client. */
861 /* #undef USE_REDIS */
862 
863 /* Define this to enable SHA1 support. */
864 #define USE_SHA1 1
865 
866 /* Define this to enable SHA256 and SHA512 support. */
867 #define USE_SHA2 1
868 
869 /* Enable extensions on AIX 3, Interix.  */
870 #ifndef _ALL_SOURCE
871 # define _ALL_SOURCE 1
872 #endif
873 /* Enable GNU extensions on systems that have them.  */
874 #ifndef _GNU_SOURCE
875 # define _GNU_SOURCE 1
876 #endif
877 /* Enable threading extensions on Solaris.  */
878 #ifndef _POSIX_PTHREAD_SEMANTICS
879 # define _POSIX_PTHREAD_SEMANTICS 1
880 #endif
881 /* Enable extensions on HP NonStop.  */
882 #ifndef _TANDEM_SOURCE
883 # define _TANDEM_SOURCE 1
884 #endif
885 /* Enable general extensions on Solaris.  */
886 #ifndef __EXTENSIONS__
887 # define __EXTENSIONS__ 1
888 #endif
889 
890 
891 /* Define this to enable server TCP Fast Open. */
892 /* #undef USE_TCP_FASTOPEN */
893 
894 /* Whether the windows socket API is used */
895 /* #undef USE_WINSOCK */
896 
897 /* the version of the windows API enabled */
898 #define WINVER 0x0502
899 
900 /* Define if you want dynlib module. */
901 /* #undef WITH_DYNLIBMODULE */
902 
903 /* Define if you want Python module. */
904 /* #undef WITH_PYTHONMODULE */
905 
906 /* Define if you want PyUnbound. */
907 /* #undef WITH_PYUNBOUND */
908 
909 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
910    `char[]'. */
911 #define YYTEXT_POINTER 1
912 
913 /* Enable large inode numbers on Mac OS X 10.5.  */
914 #ifndef _DARWIN_USE_64_BIT_INODE
915 # define _DARWIN_USE_64_BIT_INODE 1
916 #endif
917 
918 /* Number of bits in a file offset, on hosts where this is settable. */
919 /* #undef _FILE_OFFSET_BITS */
920 
921 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
922 /* #undef _LARGEFILE_SOURCE */
923 
924 /* Define for large files, on AIX-style hosts. */
925 /* #undef _LARGE_FILES */
926 
927 /* Define to 1 if on MINIX. */
928 /* #undef _MINIX */
929 
930 /* Enable for compile on Minix */
931 /* #undef _NETBSD_SOURCE */
932 
933 /* Define to 2 if the system does not provide POSIX.1 features except with
934    this defined. */
935 /* #undef _POSIX_1_SOURCE */
936 
937 /* Define to 1 if you need to in order for `stat' and other things to work. */
938 /* #undef _POSIX_SOURCE */
939 
940 /* Define to empty if `const' does not conform to ANSI C. */
941 /* #undef const */
942 
943 /* Define to `int' if <sys/types.h> doesn't define. */
944 /* #undef gid_t */
945 
946 /* in_addr_t */
947 /* #undef in_addr_t */
948 
949 /* in_port_t */
950 /* #undef in_port_t */
951 
952 /* Define to `__inline__' or `__inline' if that's what the C compiler
953    calls it, or to nothing if 'inline' is not supported under any name.  */
954 #ifndef __cplusplus
955 /* #undef inline */
956 #endif
957 
958 /* Define to `short' if <sys/types.h> does not define. */
959 /* #undef int16_t */
960 
961 /* Define to `int' if <sys/types.h> does not define. */
962 /* #undef int32_t */
963 
964 /* Define to `long long' if <sys/types.h> does not define. */
965 /* #undef int64_t */
966 
967 /* Define to `signed char' if <sys/types.h> does not define. */
968 /* #undef int8_t */
969 
970 /* Define if replacement function should be used. */
971 /* #undef malloc */
972 
973 /* Define to `long int' if <sys/types.h> does not define. */
974 /* #undef off_t */
975 
976 /* Define to `int' if <sys/types.h> does not define. */
977 /* #undef pid_t */
978 
979 /* Define to 'int' if not defined */
980 /* #undef rlim_t */
981 
982 /* Define to `unsigned int' if <sys/types.h> does not define. */
983 /* #undef size_t */
984 
985 /* Define to 'int' if not defined */
986 /* #undef socklen_t */
987 
988 /* Define to `int' if <sys/types.h> does not define. */
989 /* #undef ssize_t */
990 
991 /* Define to 'unsigned char if not defined */
992 /* #undef u_char */
993 
994 /* Define to `int' if <sys/types.h> doesn't define. */
995 /* #undef uid_t */
996 
997 /* Define to `unsigned short' if <sys/types.h> does not define. */
998 /* #undef uint16_t */
999 
1000 /* Define to `unsigned int' if <sys/types.h> does not define. */
1001 /* #undef uint32_t */
1002 
1003 /* Define to `unsigned long long' if <sys/types.h> does not define. */
1004 /* #undef uint64_t */
1005 
1006 /* Define to `unsigned char' if <sys/types.h> does not define. */
1007 /* #undef uint8_t */
1008 
1009 /* Define as `fork' if `vfork' does not work. */
1010 /* #undef vfork */
1011 
1012 #if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
1013 #define _GNU_SOURCE 1
1014 #endif
1015 
1016 #if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
1017 #define _BSD_SOURCE 1
1018 #endif
1019 
1020 #if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
1021 #define _DEFAULT_SOURCE 1
1022 #endif
1023 
1024 #if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
1025 #define __EXTENSIONS__ 1
1026 #endif
1027 
1028 #if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
1029 #define _POSIX_C_SOURCE 200112
1030 #endif
1031 
1032 #if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
1033 #define _XOPEN_SOURCE 600
1034 #endif
1035 
1036 #if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
1037 #define _XOPEN_SOURCE_EXTENDED 1
1038 #endif
1039 
1040 #if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
1041 #define _ALL_SOURCE 1
1042 #endif
1043 
1044 #if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
1045 #define _LARGEFILE_SOURCE 1
1046 #endif
1047 
1048 
1049 
1050 
1051 #ifndef _OPENBSD_SOURCE
1052 #define _OPENBSD_SOURCE 1
1053 #endif
1054 
1055 #ifndef UNBOUND_DEBUG
1056 # ifndef NDEBUG
1057 #  define NDEBUG
1058 # endif
1059 #endif
1060 
1061 /** Use small-ldns codebase */
1062 #define USE_SLDNS 1
1063 #ifdef HAVE_SSL
1064 #  define LDNS_BUILD_CONFIG_HAVE_SSL 1
1065 #endif
1066 
1067 #include <stdio.h>
1068 #include <string.h>
1069 #include <unistd.h>
1070 #include <assert.h>
1071 
1072 #if STDC_HEADERS
1073 #include <stdlib.h>
1074 #include <stddef.h>
1075 #endif
1076 
1077 #ifdef HAVE_STDARG_H
1078 #include <stdarg.h>
1079 #endif
1080 
1081 #ifdef HAVE_STDINT_H
1082 #include <stdint.h>
1083 #endif
1084 
1085 #include <errno.h>
1086 
1087 #if HAVE_SYS_PARAM_H
1088 #include <sys/param.h>
1089 #endif
1090 
1091 #ifdef HAVE_SYS_SOCKET_H
1092 #include <sys/socket.h>
1093 #endif
1094 
1095 #ifdef HAVE_SYS_UIO_H
1096 #include <sys/uio.h>
1097 #endif
1098 
1099 #ifdef HAVE_NETINET_IN_H
1100 #include <netinet/in.h>
1101 #endif
1102 
1103 #ifdef HAVE_NETINET_TCP_H
1104 #include <netinet/tcp.h>
1105 #endif
1106 
1107 #ifdef HAVE_ARPA_INET_H
1108 #include <arpa/inet.h>
1109 #endif
1110 
1111 #ifdef HAVE_WINSOCK2_H
1112 #include <winsock2.h>
1113 #endif
1114 
1115 #ifdef HAVE_WS2TCPIP_H
1116 #include <ws2tcpip.h>
1117 #endif
1118 
1119 #ifndef USE_WINSOCK
1120 #define ARG_LL "%ll"
1121 #else
1122 #define ARG_LL "%I64"
1123 #endif
1124 
1125 #ifndef AF_LOCAL
1126 #define AF_LOCAL AF_UNIX
1127 #endif
1128 
1129 
1130 
1131 #ifdef HAVE_ATTR_FORMAT
1132 #  define ATTR_FORMAT(archetype, string_index, first_to_check) \
1133     __attribute__ ((format (archetype, string_index, first_to_check)))
1134 #else /* !HAVE_ATTR_FORMAT */
1135 #  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1136 #endif /* !HAVE_ATTR_FORMAT */
1137 
1138 
1139 #if defined(DOXYGEN)
1140 #  define ATTR_UNUSED(x)  x
1141 #elif defined(__cplusplus)
1142 #  define ATTR_UNUSED(x)
1143 #elif defined(HAVE_ATTR_UNUSED)
1144 #  define ATTR_UNUSED(x)  x __attribute__((unused))
1145 #else /* !HAVE_ATTR_UNUSED */
1146 #  define ATTR_UNUSED(x)  x
1147 #endif /* !HAVE_ATTR_UNUSED */
1148 
1149 
1150 #ifndef HAVE_FSEEKO
1151 #define fseeko fseek
1152 #define ftello ftell
1153 #endif /* HAVE_FSEEKO */
1154 
1155 
1156 #ifndef MAXHOSTNAMELEN
1157 #define MAXHOSTNAMELEN 256
1158 #endif
1159 
1160 #if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1161 #define snprintf snprintf_unbound
1162 #define vsnprintf vsnprintf_unbound
1163 #include <stdarg.h>
1164 int snprintf (char *str, size_t count, const char *fmt, ...);
1165 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
1166 #endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1167 
1168 #ifndef HAVE_INET_PTON
1169 #define inet_pton inet_pton_unbound
1170 int inet_pton(int af, const char* src, void* dst);
1171 #endif /* HAVE_INET_PTON */
1172 
1173 
1174 #ifndef HAVE_INET_NTOP
1175 #define inet_ntop inet_ntop_unbound
1176 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1177 #endif
1178 
1179 
1180 #ifndef HAVE_INET_ATON
1181 #define inet_aton inet_aton_unbound
1182 int inet_aton(const char *cp, struct in_addr *addr);
1183 #endif
1184 
1185 
1186 #ifndef HAVE_MEMMOVE
1187 #define memmove memmove_unbound
1188 void *memmove(void *dest, const void *src, size_t n);
1189 #endif
1190 
1191 
1192 #ifndef HAVE_STRLCAT
1193 #define strlcat strlcat_unbound
1194 size_t strlcat(char *dst, const char *src, size_t siz);
1195 #endif
1196 
1197 
1198 #ifndef HAVE_STRLCPY
1199 #define strlcpy strlcpy_unbound
1200 size_t strlcpy(char *dst, const char *src, size_t siz);
1201 #endif
1202 
1203 
1204 #ifndef HAVE_GMTIME_R
1205 #define gmtime_r gmtime_r_unbound
1206 struct tm *gmtime_r(const time_t *timep, struct tm *result);
1207 #endif
1208 
1209 
1210 #ifndef HAVE_REALLOCARRAY
1211 #define reallocarray reallocarrayunbound
1212 void* reallocarray(void *ptr, size_t nmemb, size_t size);
1213 #endif
1214 
1215 
1216 #if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1217 #define sleep(x) Sleep((x)*1000) /* on win32 */
1218 #endif /* HAVE_SLEEP */
1219 
1220 
1221 #ifndef HAVE_USLEEP
1222 #define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1223 #endif /* HAVE_USLEEP */
1224 
1225 
1226 #ifndef HAVE_RANDOM
1227 #define random rand /* on win32, for tests only (bad random) */
1228 #endif /* HAVE_RANDOM */
1229 
1230 
1231 #ifndef HAVE_SRANDOM
1232 #define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1233 #endif /* HAVE_SRANDOM */
1234 
1235 
1236 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1237 #ifdef HAVE_WINSOCK2_H
1238 #define FD_SET_T (u_int)
1239 #else
1240 #define FD_SET_T
1241 #endif
1242 
1243 
1244 #ifndef IPV6_MIN_MTU
1245 #define IPV6_MIN_MTU 1280
1246 #endif /* IPV6_MIN_MTU */
1247 
1248 
1249 #ifdef MEMCMP_IS_BROKEN
1250 #include "compat/memcmp.h"
1251 #define memcmp memcmp_unbound
1252 int memcmp(const void *x, const void *y, size_t n);
1253 #endif
1254 
1255 
1256 
1257 #ifndef HAVE_CTIME_R
1258 #define ctime_r unbound_ctime_r
1259 char *ctime_r(const time_t *timep, char *buf);
1260 #endif
1261 
1262 #ifndef HAVE_STRSEP
1263 #define strsep unbound_strsep
1264 char *strsep(char **stringp, const char *delim);
1265 #endif
1266 
1267 #ifndef HAVE_ISBLANK
1268 #define isblank unbound_isblank
1269 int isblank(int c);
1270 #endif
1271 
1272 #ifndef HAVE_EXPLICIT_BZERO
1273 // #define explicit_bzero unbound_explicit_bzero
1274 #define explicit_bzero(a, b) explicit_memset(a, 0, b)
1275 // void explicit_bzero(void* buf, size_t len);
1276 #endif
1277 
1278 #if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
1279 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1280 #endif
1281 
1282 #if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
1283 int inet_pton(int af, const char* src, void* dst);
1284 #endif
1285 
1286 #if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1287 #define strptime unbound_strptime
1288 struct tm;
1289 char *strptime(const char *s, const char *format, struct tm *tm);
1290 #endif
1291 
1292 #if !HAVE_DECL_REALLOCARRAY
1293 void *reallocarray(void *ptr, size_t nmemb, size_t size);
1294 #endif
1295 
1296 #ifdef HAVE_LIBBSD
1297 #include <bsd/string.h>
1298 #include <bsd/stdlib.h>
1299 #endif
1300 
1301 #ifdef HAVE_LIBRESSL
1302 #  if !HAVE_DECL_STRLCPY
1303 size_t strlcpy(char *dst, const char *src, size_t siz);
1304 #  endif
1305 #  if !HAVE_DECL_STRLCAT
1306 size_t strlcat(char *dst, const char *src, size_t siz);
1307 #  endif
1308 #  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
1309 uint32_t arc4random(void);
1310 #  endif
1311 #  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
1312 uint32_t arc4random_uniform(uint32_t upper_bound);
1313 #  endif
1314 #endif /* HAVE_LIBRESSL */
1315 #ifndef HAVE_ARC4RANDOM
1316 int getentropy(void* buf, size_t len);
1317 uint32_t arc4random(void);
1318 void arc4random_buf(void* buf, size_t n);
1319 void _ARC4_LOCK(void);
1320 void _ARC4_UNLOCK(void);
1321 void _ARC4_LOCK_DESTROY(void);
1322 #endif
1323 #ifndef HAVE_ARC4RANDOM_UNIFORM
1324 uint32_t arc4random_uniform(uint32_t upper_bound);
1325 #endif
1326 #ifdef COMPAT_SHA512
1327 #ifndef SHA512_DIGEST_LENGTH
1328 #define SHA512_BLOCK_LENGTH		128
1329 #define SHA512_DIGEST_LENGTH		64
1330 #define SHA512_DIGEST_STRING_LENGTH	(SHA512_DIGEST_LENGTH * 2 + 1)
1331 typedef struct _SHA512_CTX {
1332 	uint64_t	state[8];
1333 	uint64_t	bitcount[2];
1334 	uint8_t	buffer[SHA512_BLOCK_LENGTH];
1335 } SHA512_CTX;
1336 #endif /* SHA512_DIGEST_LENGTH */
1337 void SHA512_Init(SHA512_CTX*);
1338 void SHA512_Update(SHA512_CTX*, void*, size_t);
1339 void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1340 unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1341 #endif /* COMPAT_SHA512 */
1342 
1343 
1344 
1345 #if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
1346    /* using version of libevent that is not threadsafe. */
1347 #  define LIBEVENT_SIGNAL_PROBLEM 1
1348 #endif
1349 
1350 #ifndef CHECKED_INET6
1351 #  define CHECKED_INET6
1352 #  ifdef AF_INET6
1353 #    define INET6
1354 #  else
1355 #    define AF_INET6        28
1356 #  endif
1357 #endif /* CHECKED_INET6 */
1358 
1359 #ifndef HAVE_GETADDRINFO
1360 struct sockaddr_storage;
1361 #include "compat/fake-rfc2553.h"
1362 #endif
1363 
1364 #ifdef UNBOUND_ALLOC_STATS
1365 #  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1366 #  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1367 #  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1368 #  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1369 void *unbound_stat_malloc(size_t size);
1370 void *unbound_stat_calloc(size_t nmemb, size_t size);
1371 void unbound_stat_free(void *ptr);
1372 void *unbound_stat_realloc(void *ptr, size_t size);
1373 void *unbound_stat_malloc_log(size_t size, const char* file, int line,
1374 	const char* func);
1375 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1376 	int line, const char* func);
1377 void unbound_stat_free_log(void *ptr, const char* file, int line,
1378 	const char* func);
1379 void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1380 	int line, const char* func);
1381 #elif defined(UNBOUND_ALLOC_LITE)
1382 #  include "util/alloc.h"
1383 #endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1384 
1385 /** default port for DNS traffic. */
1386 #define UNBOUND_DNS_PORT 53
1387 /** default port for DNS over TLS traffic. */
1388 #define UNBOUND_DNS_OVER_TLS_PORT 853
1389 /** default port for DNS over HTTPS traffic. */
1390 #define UNBOUND_DNS_OVER_HTTPS_PORT 443
1391 /** default port for unbound control traffic, registered port with IANA,
1392     ub-dns-control  8953/tcp    unbound dns nameserver control */
1393 #define UNBOUND_CONTROL_PORT 8953
1394 /** the version of unbound-control that this software implements */
1395 #define UNBOUND_CONTROL_VERSION 1
1396 
1397 
1398