xref: /openbsd/usr.sbin/unbound/config.h.in (revision c3b38330)
1933707f3Ssthen/* config.h.in.  Generated from configure.ac by autoheader.  */
2933707f3Ssthen
3452a1548Ssthen/* apply the noreturn attribute to a function that exits the program */
4452a1548Ssthen#undef ATTR_NORETURN
5452a1548Ssthen
6452a1548Ssthen/* apply the weak attribute to a symbol */
7452a1548Ssthen#undef ATTR_WEAK
8452a1548Ssthen
9933707f3Ssthen/* Directory to chroot to */
10933707f3Ssthen#undef CHROOT_DIR
11933707f3Ssthen
122be9e038Ssthen/* Define this to enable client subnet option. */
132be9e038Ssthen#undef CLIENT_SUBNET
142be9e038Ssthen
1598f3ca02Sbrad/* Do sha512 definitions in config.h */
1698f3ca02Sbrad#undef COMPAT_SHA512
1798f3ca02Sbrad
18933707f3Ssthen/* Pathname to the Unbound configuration file */
19933707f3Ssthen#undef CONFIGFILE
20933707f3Ssthen
21933707f3Ssthen/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
22933707f3Ssthen   */
23933707f3Ssthen#undef DARWIN_BROKEN_SETREUID
24933707f3Ssthen
25933707f3Ssthen/* Whether daemon is deprecated */
26933707f3Ssthen#undef DEPRECATED_DAEMON
27933707f3Ssthen
2898f3ca02Sbrad/* default dnstap socket path */
2998f3ca02Sbrad#undef DNSTAP_SOCKET_PATH
3098f3ca02Sbrad
31933707f3Ssthen/* Define if you want to use debug lock checking (slow). */
32933707f3Ssthen#undef ENABLE_LOCK_CHECKS
33933707f3Ssthen
34933707f3Ssthen/* Define this if you enabled-allsymbols from libunbound to link binaries to
35933707f3Ssthen   it for smaller install size, but the libunbound export table is polluted by
36933707f3Ssthen   internal symbols */
37933707f3Ssthen#undef EXPORT_ALL_SYMBOLS
38933707f3Ssthen
3920237c55Ssthen/* Define to 1 if you have the `accept4' function. */
4020237c55Ssthen#undef HAVE_ACCEPT4
4120237c55Ssthen
4298f3ca02Sbrad/* Define to 1 if you have the `arc4random' function. */
4398f3ca02Sbrad#undef HAVE_ARC4RANDOM
4498f3ca02Sbrad
4598f3ca02Sbrad/* Define to 1 if you have the `arc4random_uniform' function. */
4698f3ca02Sbrad#undef HAVE_ARC4RANDOM_UNIFORM
4798f3ca02Sbrad
48933707f3Ssthen/* Define to 1 if you have the <arpa/inet.h> header file. */
49933707f3Ssthen#undef HAVE_ARPA_INET_H
50933707f3Ssthen
51933707f3Ssthen/* Whether the C compiler accepts the "format" attribute */
52933707f3Ssthen#undef HAVE_ATTR_FORMAT
53933707f3Ssthen
54452a1548Ssthen/* Whether the C compiler accepts the "noreturn" attribute */
55452a1548Ssthen#undef HAVE_ATTR_NORETURN
56452a1548Ssthen
57933707f3Ssthen/* Whether the C compiler accepts the "unused" attribute */
58933707f3Ssthen#undef HAVE_ATTR_UNUSED
59933707f3Ssthen
602ee382b6Ssthen/* Whether the C compiler accepts the "weak" attribute */
612ee382b6Ssthen#undef HAVE_ATTR_WEAK
622ee382b6Ssthen
63b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */
64933707f3Ssthen#undef HAVE_CHOWN
65933707f3Ssthen
66933707f3Ssthen/* Define to 1 if you have the `chroot' function. */
67933707f3Ssthen#undef HAVE_CHROOT
68933707f3Ssthen
6977079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
7077079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
7177079be7Ssthen
72*c3b38330Ssthen/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
73*c3b38330Ssthen#undef HAVE_CRYPTO_THREADID_SET_CALLBACK
74*c3b38330Ssthen
75933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */
76933707f3Ssthen#undef HAVE_CTIME_R
77933707f3Ssthen
78933707f3Ssthen/* Define to 1 if you have the `daemon' function. */
79933707f3Ssthen#undef HAVE_DAEMON
80933707f3Ssthen
8198f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
8298f3ca02Sbrad   don't. */
8398f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM
8498f3ca02Sbrad
8598f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
8698f3ca02Sbrad   if you don't. */
8798f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM
8898f3ca02Sbrad
8977079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
9077079be7Ssthen   don't. */
9177079be7Ssthen#undef HAVE_DECL_INET_NTOP
9277079be7Ssthen
9377079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
9477079be7Ssthen   don't. */
9577079be7Ssthen#undef HAVE_DECL_INET_PTON
9677079be7Ssthen
972be9e038Ssthen/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
982be9e038Ssthen   don't. */
992be9e038Ssthen#undef HAVE_DECL_NID_ED25519
1002be9e038Ssthen
10120237c55Ssthen/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
10220237c55Ssthen   don't. */
10320237c55Ssthen#undef HAVE_DECL_NID_ED448
10420237c55Ssthen
105d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
106d8d14d0cSsthen   don't. */
107d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1
108d8d14d0cSsthen
109d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
110d8d14d0cSsthen   if you don't. */
111d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1
112d8d14d0cSsthen
113fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
114fdfb4ba6Ssthen   don't. */
115fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY
116fdfb4ba6Ssthen
11720237c55Ssthen/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
11820237c55Ssthen   don't. */
11920237c55Ssthen#undef HAVE_DECL_REDISCONNECT
12020237c55Ssthen
121933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
122933707f3Ssthen   if you don't. */
123933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE
124933707f3Ssthen
125933707f3Ssthen/* Define to 1 if you have the declaration of
126933707f3Ssthen   `SSL_COMP_get_compression_methods', and to 0 if you don't. */
127933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
128933707f3Ssthen
129a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
130a961b961Ssthen   0 if you don't. */
131a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
132a961b961Ssthen
13398f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you
13498f3ca02Sbrad   don't. */
13598f3ca02Sbrad#undef HAVE_DECL_STRLCAT
13698f3ca02Sbrad
13798f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
13898f3ca02Sbrad   don't. */
13998f3ca02Sbrad#undef HAVE_DECL_STRLCPY
14098f3ca02Sbrad
14124893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
14224893edcSsthen   you don't. */
14324893edcSsthen#undef HAVE_DECL_XML_STOPPARSER
14424893edcSsthen
145933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */
146933707f3Ssthen#undef HAVE_DLFCN_H
147933707f3Ssthen
14877079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */
14977079be7Ssthen#undef HAVE_DSA_SIG_SET0
15077079be7Ssthen
15198f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */
15298f3ca02Sbrad#undef HAVE_ENDIAN_H
15398f3ca02Sbrad
1545d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */
1555d76a658Ssthen#undef HAVE_ENDPROTOENT
1565d76a658Ssthen
15777079be7Ssthen/* Define to 1 if you have the `endpwent' function. */
15877079be7Ssthen#undef HAVE_ENDPWENT
15977079be7Ssthen
1605d76a658Ssthen/* Define to 1 if you have the `endservent' function. */
1615d76a658Ssthen#undef HAVE_ENDSERVENT
1625d76a658Ssthen
16377079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */
16477079be7Ssthen#undef HAVE_ERR_FREE_STRINGS
16577079be7Ssthen
16677079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */
16777079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS
16877079be7Ssthen
169933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */
170933707f3Ssthen#undef HAVE_EVENT_BASE_FREE
171933707f3Ssthen
172933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */
173933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD
174933707f3Ssthen
175933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */
176933707f3Ssthen#undef HAVE_EVENT_BASE_NEW
177933707f3Ssthen
178933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */
179933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE
180933707f3Ssthen
181933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */
182933707f3Ssthen#undef HAVE_EVENT_H
183933707f3Ssthen
184f6b99bafSsthen/* Define to 1 if you have the `EVP_aes_256_cbc' function. */
185f6b99bafSsthen#undef HAVE_EVP_AES_256_CBC
186f6b99bafSsthen
18777079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */
18877079be7Ssthen#undef HAVE_EVP_CLEANUP
18977079be7Ssthen
1902be9e038Ssthen/* Define to 1 if you have the `EVP_DigestVerify' function. */
1912be9e038Ssthen#undef HAVE_EVP_DIGESTVERIFY
1922be9e038Ssthen
19377079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */
19477079be7Ssthen#undef HAVE_EVP_DSS1
19577079be7Ssthen
196f6b99bafSsthen/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
197f6b99bafSsthen#undef HAVE_EVP_ENCRYPTINIT_EX
198f6b99bafSsthen
1992ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */
2002ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW
2012ee382b6Ssthen
202933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */
203933707f3Ssthen#undef HAVE_EVP_SHA1
204933707f3Ssthen
205933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */
206933707f3Ssthen#undef HAVE_EVP_SHA256
207933707f3Ssthen
208933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */
209933707f3Ssthen#undef HAVE_EVP_SHA512
210933707f3Ssthen
211933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */
212933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP
213933707f3Ssthen
214933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */
215933707f3Ssthen#undef HAVE_EV_LOOP
216933707f3Ssthen
217933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */
218933707f3Ssthen#undef HAVE_EXPAT_H
219933707f3Ssthen
220452a1548Ssthen/* Define to 1 if you have the `explicit_bzero' function. */
221452a1548Ssthen#undef HAVE_EXPLICIT_BZERO
222452a1548Ssthen
223933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */
224933707f3Ssthen#undef HAVE_FCNTL
225933707f3Ssthen
2263dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */
2273dcb24b8Ssthen#undef HAVE_FIPS_MODE
2283dcb24b8Ssthen
229933707f3Ssthen/* Define to 1 if you have the `fork' function. */
230933707f3Ssthen#undef HAVE_FORK
231933707f3Ssthen
232933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
233933707f3Ssthen#undef HAVE_FSEEKO
234933707f3Ssthen
23524893edcSsthen/* Define to 1 if you have the `fsync' function. */
23624893edcSsthen#undef HAVE_FSYNC
23724893edcSsthen
238933707f3Ssthen/* Whether getaddrinfo is available */
239933707f3Ssthen#undef HAVE_GETADDRINFO
240933707f3Ssthen
241b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */
242b2cdf21fSsthen#undef HAVE_GETAUXVAL
243b2cdf21fSsthen
24498f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */
24598f3ca02Sbrad#undef HAVE_GETENTROPY
24698f3ca02Sbrad
247933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */
248933707f3Ssthen#undef HAVE_GETOPT_H
249933707f3Ssthen
250933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */
251933707f3Ssthen#undef HAVE_GETPWNAM
252933707f3Ssthen
253933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */
254933707f3Ssthen#undef HAVE_GETRLIMIT
255933707f3Ssthen
256933707f3Ssthen/* Define to 1 if you have the `glob' function. */
257933707f3Ssthen#undef HAVE_GLOB
258933707f3Ssthen
259933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */
260933707f3Ssthen#undef HAVE_GLOB_H
261933707f3Ssthen
262933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */
263933707f3Ssthen#undef HAVE_GMTIME_R
264933707f3Ssthen
265933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */
266933707f3Ssthen#undef HAVE_GRP_H
267933707f3Ssthen
26820237c55Ssthen/* Define to 1 if you have the <hiredis/hiredis.h> header file. */
26920237c55Ssthen#undef HAVE_HIREDIS_HIREDIS_H
27020237c55Ssthen
271f6b99bafSsthen/* Define to 1 if you have the `HMAC_Init_ex' function. */
272f6b99bafSsthen#undef HAVE_HMAC_INIT_EX
273f6b99bafSsthen
2742ee382b6Ssthen/* If you have HMAC_Update */
2752ee382b6Ssthen#undef HAVE_HMAC_UPDATE
276933707f3Ssthen
277933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */
278933707f3Ssthen#undef HAVE_INET_ATON
279933707f3Ssthen
280933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */
281933707f3Ssthen#undef HAVE_INET_NTOP
282933707f3Ssthen
283933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */
284933707f3Ssthen#undef HAVE_INET_PTON
285933707f3Ssthen
286933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */
287933707f3Ssthen#undef HAVE_INITGROUPS
288933707f3Ssthen
289933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */
290933707f3Ssthen#undef HAVE_INTTYPES_H
291933707f3Ssthen
292933707f3Ssthen/* if the function 'ioctlsocket' is available */
293933707f3Ssthen#undef HAVE_IOCTLSOCKET
294933707f3Ssthen
295933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */
296933707f3Ssthen#undef HAVE_IPHLPAPI_H
297933707f3Ssthen
29824893edcSsthen/* Define to 1 if you have the `isblank' function. */
29924893edcSsthen#undef HAVE_ISBLANK
30024893edcSsthen
301933707f3Ssthen/* Define to 1 if you have the `kill' function. */
302933707f3Ssthen#undef HAVE_KILL
303933707f3Ssthen
30420237c55Ssthen/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
30520237c55Ssthen#undef HAVE_LIBKERN_OSBYTEORDER_H
30620237c55Ssthen
30798f3ca02Sbrad/* Define if we have LibreSSL */
30898f3ca02Sbrad#undef HAVE_LIBRESSL
30998f3ca02Sbrad
310933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */
311933707f3Ssthen#undef HAVE_LOCALTIME_R
312933707f3Ssthen
313933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */
314933707f3Ssthen#undef HAVE_LOGIN_CAP_H
315933707f3Ssthen
316933707f3Ssthen/* If have GNU libc compatible malloc */
317933707f3Ssthen#undef HAVE_MALLOC
318933707f3Ssthen
319933707f3Ssthen/* Define to 1 if you have the `memmove' function. */
320933707f3Ssthen#undef HAVE_MEMMOVE
321933707f3Ssthen
322933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */
323933707f3Ssthen#undef HAVE_MEMORY_H
324933707f3Ssthen
325933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */
326933707f3Ssthen#undef HAVE_NETDB_H
327933707f3Ssthen
328933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */
329933707f3Ssthen#undef HAVE_NETINET_IN_H
330933707f3Ssthen
33132e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */
33232e31f52Ssthen#undef HAVE_NETINET_TCP_H
33332e31f52Ssthen
33424893edcSsthen/* Use libnettle for crypto */
33524893edcSsthen#undef HAVE_NETTLE
33624893edcSsthen
33777079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
33877079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H
33977079be7Ssthen
3407191de28Ssthen/* Define to 1 if you have the <nettle/eddsa.h> header file. */
3417191de28Ssthen#undef HAVE_NETTLE_EDDSA_H
3427191de28Ssthen
3433dcb24b8Ssthen/* Use libnss for crypto */
3443dcb24b8Ssthen#undef HAVE_NSS
3453dcb24b8Ssthen
34677079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
34777079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS
34877079be7Ssthen
34977079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */
35077079be7Ssthen#undef HAVE_OPENSSL_BN_H
35177079be7Ssthen
352933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */
353933707f3Ssthen#undef HAVE_OPENSSL_CONFIG
354933707f3Ssthen
355933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */
356933707f3Ssthen#undef HAVE_OPENSSL_CONF_H
357933707f3Ssthen
35877079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */
35977079be7Ssthen#undef HAVE_OPENSSL_DH_H
36077079be7Ssthen
36177079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */
36277079be7Ssthen#undef HAVE_OPENSSL_DSA_H
36377079be7Ssthen
364933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */
365933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H
366933707f3Ssthen
367933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */
368933707f3Ssthen#undef HAVE_OPENSSL_ERR_H
369933707f3Ssthen
37077079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */
37177079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO
37277079be7Ssthen
37377079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */
37477079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL
37577079be7Ssthen
376933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */
377933707f3Ssthen#undef HAVE_OPENSSL_RAND_H
378933707f3Ssthen
37977079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */
38077079be7Ssthen#undef HAVE_OPENSSL_RSA_H
38177079be7Ssthen
382933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */
383933707f3Ssthen#undef HAVE_OPENSSL_SSL_H
384933707f3Ssthen
385933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */
386933707f3Ssthen#undef HAVE_PTHREAD
387933707f3Ssthen
388229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */
389229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT
390229e174cSsthen
391933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */
392933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T
393933707f3Ssthen
394933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */
395933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T
396933707f3Ssthen
397933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */
398933707f3Ssthen#undef HAVE_PWD_H
399933707f3Ssthen
400933707f3Ssthen/* Define if you have Python libraries and header files. */
401933707f3Ssthen#undef HAVE_PYTHON
402933707f3Ssthen
403933707f3Ssthen/* Define to 1 if you have the `random' function. */
404933707f3Ssthen#undef HAVE_RANDOM
405933707f3Ssthen
40677079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */
40777079be7Ssthen#undef HAVE_RAND_CLEANUP
40877079be7Ssthen
409fdfb4ba6Ssthen/* Define to 1 if you have the `reallocarray' function. */
410fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY
411fdfb4ba6Ssthen
412933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */
413933707f3Ssthen#undef HAVE_RECVMSG
414933707f3Ssthen
415933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */
416933707f3Ssthen#undef HAVE_SENDMSG
417933707f3Ssthen
418933707f3Ssthen/* Define to 1 if you have the `setregid' function. */
419933707f3Ssthen#undef HAVE_SETREGID
420933707f3Ssthen
421933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */
422933707f3Ssthen#undef HAVE_SETRESGID
423933707f3Ssthen
424933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */
425933707f3Ssthen#undef HAVE_SETRESUID
426933707f3Ssthen
427933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */
428933707f3Ssthen#undef HAVE_SETREUID
429933707f3Ssthen
430933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */
431933707f3Ssthen#undef HAVE_SETRLIMIT
432933707f3Ssthen
433933707f3Ssthen/* Define to 1 if you have the `setsid' function. */
434933707f3Ssthen#undef HAVE_SETSID
435933707f3Ssthen
436933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */
437933707f3Ssthen#undef HAVE_SETUSERCONTEXT
438933707f3Ssthen
43998f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */
44098f3ca02Sbrad#undef HAVE_SHA512_UPDATE
44198f3ca02Sbrad
4422be9e038Ssthen/* Define to 1 if you have the `shmget' function. */
4432be9e038Ssthen#undef HAVE_SHMGET
4442be9e038Ssthen
445933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */
446933707f3Ssthen#undef HAVE_SIGPROCMASK
447933707f3Ssthen
448933707f3Ssthen/* Define to 1 if you have the `sleep' function. */
449933707f3Ssthen#undef HAVE_SLEEP
450933707f3Ssthen
451933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */
452933707f3Ssthen#undef HAVE_SNPRINTF
453933707f3Ssthen
454933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */
455933707f3Ssthen#undef HAVE_SOCKETPAIR
456933707f3Ssthen
457933707f3Ssthen/* Using Solaris threads */
458933707f3Ssthen#undef HAVE_SOLARIS_THREADS
459933707f3Ssthen
460933707f3Ssthen/* Define to 1 if you have the `srandom' function. */
461933707f3Ssthen#undef HAVE_SRANDOM
462933707f3Ssthen
463933707f3Ssthen/* Define if you have the SSL libraries installed. */
464933707f3Ssthen#undef HAVE_SSL
465933707f3Ssthen
466f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
467f6b99bafSsthen#undef HAVE_SSL_CTX_SET_CIPHERSUITES
468f6b99bafSsthen
46977079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
47077079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL
47177079be7Ssthen
472f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_cb' function. */
473f6b99bafSsthen#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_CB
474f6b99bafSsthen
475938a3a5eSflorian/* Define to 1 if you have the `SSL_get0_peername' function. */
476938a3a5eSflorian#undef HAVE_SSL_GET0_PEERNAME
477938a3a5eSflorian
478938a3a5eSflorian/* Define to 1 if you have the `SSL_set1_host' function. */
479938a3a5eSflorian#undef HAVE_SSL_SET1_HOST
480938a3a5eSflorian
481933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */
482933707f3Ssthen#undef HAVE_STDARG_H
483933707f3Ssthen
484933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */
485933707f3Ssthen#undef HAVE_STDBOOL_H
486933707f3Ssthen
487933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */
488933707f3Ssthen#undef HAVE_STDINT_H
489933707f3Ssthen
490933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */
491933707f3Ssthen#undef HAVE_STDLIB_H
492933707f3Ssthen
493933707f3Ssthen/* Define to 1 if you have the `strftime' function. */
494933707f3Ssthen#undef HAVE_STRFTIME
495933707f3Ssthen
496933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */
497933707f3Ssthen#undef HAVE_STRINGS_H
498933707f3Ssthen
499933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */
500933707f3Ssthen#undef HAVE_STRING_H
501933707f3Ssthen
5025d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */
5035d76a658Ssthen#undef HAVE_STRLCAT
5045d76a658Ssthen
505933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */
506933707f3Ssthen#undef HAVE_STRLCPY
507933707f3Ssthen
508933707f3Ssthen/* Define to 1 if you have the `strptime' function. */
509933707f3Ssthen#undef HAVE_STRPTIME
510933707f3Ssthen
5112ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */
5122ee382b6Ssthen#undef HAVE_STRSEP
5132ee382b6Ssthen
514d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
515d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST
516d8d14d0cSsthen
517b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
518b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
519b2cdf21fSsthen
520933707f3Ssthen/* Define if you have Swig libraries and header files. */
521933707f3Ssthen#undef HAVE_SWIG
522933707f3Ssthen
523933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */
524933707f3Ssthen#undef HAVE_SYSLOG_H
525933707f3Ssthen
52677079be7Ssthen/* Define to 1 if systemd should be used */
52777079be7Ssthen#undef HAVE_SYSTEMD
52877079be7Ssthen
52920237c55Ssthen/* Define to 1 if you have the <sys/endian.h> header file. */
53020237c55Ssthen#undef HAVE_SYS_ENDIAN_H
53120237c55Ssthen
5322be9e038Ssthen/* Define to 1 if you have the <sys/ipc.h> header file. */
5332be9e038Ssthen#undef HAVE_SYS_IPC_H
5342be9e038Ssthen
535933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */
536933707f3Ssthen#undef HAVE_SYS_PARAM_H
537933707f3Ssthen
538933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */
539933707f3Ssthen#undef HAVE_SYS_RESOURCE_H
540933707f3Ssthen
54198f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */
54298f3ca02Sbrad#undef HAVE_SYS_SHA2_H
54398f3ca02Sbrad
5442be9e038Ssthen/* Define to 1 if you have the <sys/shm.h> header file. */
5452be9e038Ssthen#undef HAVE_SYS_SHM_H
5462be9e038Ssthen
547933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */
548933707f3Ssthen#undef HAVE_SYS_SOCKET_H
549933707f3Ssthen
550933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */
551933707f3Ssthen#undef HAVE_SYS_STAT_H
552933707f3Ssthen
55398f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */
55498f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H
55598f3ca02Sbrad
556933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */
557933707f3Ssthen#undef HAVE_SYS_TYPES_H
558933707f3Ssthen
559933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */
560933707f3Ssthen#undef HAVE_SYS_UIO_H
561933707f3Ssthen
562b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */
563b2cdf21fSsthen#undef HAVE_SYS_UN_H
564b2cdf21fSsthen
565933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */
566933707f3Ssthen#undef HAVE_SYS_WAIT_H
567933707f3Ssthen
568933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */
569933707f3Ssthen#undef HAVE_TIME_H
570933707f3Ssthen
571933707f3Ssthen/* Define to 1 if you have the `tzset' function. */
572933707f3Ssthen#undef HAVE_TZSET
573933707f3Ssthen
574933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */
575933707f3Ssthen#undef HAVE_UNISTD_H
576933707f3Ssthen
577933707f3Ssthen/* Define to 1 if you have the `usleep' function. */
578933707f3Ssthen#undef HAVE_USLEEP
579933707f3Ssthen
580933707f3Ssthen/* Define to 1 if you have the `vfork' function. */
581933707f3Ssthen#undef HAVE_VFORK
582933707f3Ssthen
583933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */
584933707f3Ssthen#undef HAVE_VFORK_H
585933707f3Ssthen
586933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */
587933707f3Ssthen#undef HAVE_WINDOWS_H
588933707f3Ssthen
589933707f3Ssthen/* Using Windows threads */
590933707f3Ssthen#undef HAVE_WINDOWS_THREADS
591933707f3Ssthen
592933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */
593933707f3Ssthen#undef HAVE_WINSOCK2_H
594933707f3Ssthen
595933707f3Ssthen/* Define to 1 if `fork' works. */
596933707f3Ssthen#undef HAVE_WORKING_FORK
597933707f3Ssthen
598933707f3Ssthen/* Define to 1 if `vfork' works. */
599933707f3Ssthen#undef HAVE_WORKING_VFORK
600933707f3Ssthen
601933707f3Ssthen/* Define to 1 if you have the `writev' function. */
602933707f3Ssthen#undef HAVE_WRITEV
603933707f3Ssthen
604933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */
605933707f3Ssthen#undef HAVE_WS2TCPIP_H
606933707f3Ssthen
607f6b99bafSsthen/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
608f6b99bafSsthen#undef HAVE_X509_VERIFY_PARAM_SET1_HOST
609f6b99bafSsthen
610933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */
611933707f3Ssthen#undef HAVE__BEGINTHREADEX
612933707f3Ssthen
613933707f3Ssthen/* if lex has yylex_destroy */
614933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY
615933707f3Ssthen
61632e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */
617933707f3Ssthen#undef LT_OBJDIR
618933707f3Ssthen
619933707f3Ssthen/* Define to the maximum message length to pass to syslog. */
620933707f3Ssthen#undef MAXSYSLOGMSGLEN
621933707f3Ssthen
622933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */
623933707f3Ssthen#undef MEMCMP_IS_BROKEN
624933707f3Ssthen
625933707f3Ssthen/* Define if mkdir has one argument. */
626933707f3Ssthen#undef MKDIR_HAS_ONE_ARG
627933707f3Ssthen
628933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes
629933707f3Ssthen   lower performance). */
630933707f3Ssthen#undef NONBLOCKING_IS_BROKEN
631933707f3Ssthen
632933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */
633933707f3Ssthen#undef OMITTED__D_ALL_SOURCE
634933707f3Ssthen
635933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */
636933707f3Ssthen#undef OMITTED__D_BSD_SOURCE
637933707f3Ssthen
63832e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */
63932e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE
64032e31f52Ssthen
641933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */
642933707f3Ssthen#undef OMITTED__D_GNU_SOURCE
643933707f3Ssthen
644933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */
645933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1
646933707f3Ssthen
647933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */
648933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112
649933707f3Ssthen
650933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */
651933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600
652933707f3Ssthen
653933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
654933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1
655933707f3Ssthen
656933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */
657933707f3Ssthen#undef OMITTED__D__EXTENSIONS__
658933707f3Ssthen
659933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */
660933707f3Ssthen#undef PACKAGE_BUGREPORT
661933707f3Ssthen
662933707f3Ssthen/* Define to the full name of this package. */
663933707f3Ssthen#undef PACKAGE_NAME
664933707f3Ssthen
665933707f3Ssthen/* Define to the full name and version of this package. */
666933707f3Ssthen#undef PACKAGE_STRING
667933707f3Ssthen
668933707f3Ssthen/* Define to the one symbol short name of this package. */
669933707f3Ssthen#undef PACKAGE_TARNAME
670933707f3Ssthen
671933707f3Ssthen/* Define to the home page for this package. */
672933707f3Ssthen#undef PACKAGE_URL
673933707f3Ssthen
674933707f3Ssthen/* Define to the version of this package. */
675933707f3Ssthen#undef PACKAGE_VERSION
676933707f3Ssthen
677933707f3Ssthen/* default pidfile location */
678933707f3Ssthen#undef PIDFILE
679933707f3Ssthen
680933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on
681933707f3Ssthen   your system. */
682933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE
683933707f3Ssthen
684933707f3Ssthen/* Define as the return type of signal handlers (`int' or `void'). */
685933707f3Ssthen#undef RETSIGTYPE
686933707f3Ssthen
6873150e5f6Ssthen/* if REUSEPORT is enabled by default */
6883150e5f6Ssthen#undef REUSEPORT_DEFAULT
6893150e5f6Ssthen
690933707f3Ssthen/* default rootkey location */
691933707f3Ssthen#undef ROOT_ANCHOR_FILE
692933707f3Ssthen
693933707f3Ssthen/* default rootcert location */
694933707f3Ssthen#undef ROOT_CERT_FILE
695933707f3Ssthen
696933707f3Ssthen/* version number for resource files */
697933707f3Ssthen#undef RSRC_PACKAGE_VERSION
698933707f3Ssthen
699933707f3Ssthen/* Directory to chdir to */
700933707f3Ssthen#undef RUN_DIR
701933707f3Ssthen
702933707f3Ssthen/* Shared data */
703933707f3Ssthen#undef SHARE_DIR
704933707f3Ssthen
7055d76a658Ssthen/* The size of `time_t', as computed by sizeof. */
7065d76a658Ssthen#undef SIZEOF_TIME_T
7075d76a658Ssthen
70824893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */
70924893edcSsthen#undef SNPRINTF_RET_BROKEN
71024893edcSsthen
711bdfc4d55Sflorian/* Define to 1 if libsodium supports sodium_set_misuse_handler */
712bdfc4d55Sflorian#undef SODIUM_MISUSE_HANDLER
713bdfc4d55Sflorian
714933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */
715933707f3Ssthen#undef STDC_HEADERS
716933707f3Ssthen
717933707f3Ssthen/* use default strptime. */
718933707f3Ssthen#undef STRPTIME_WORKS
719933707f3Ssthen
720933707f3Ssthen/* Use win32 resources and API */
721933707f3Ssthen#undef UB_ON_WINDOWS
722933707f3Ssthen
723933707f3Ssthen/* default username */
724933707f3Ssthen#undef UB_USERNAME
725933707f3Ssthen
726933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */
727933707f3Ssthen#undef UNBOUND_ALLOC_LITE
728933707f3Ssthen
729933707f3Ssthen/* use malloc not regions, for debug use */
730933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL
731933707f3Ssthen
732933707f3Ssthen/* use statistics for allocs and frees, for debug use */
733933707f3Ssthen#undef UNBOUND_ALLOC_STATS
734933707f3Ssthen
735933707f3Ssthen/* define this to enable debug checks. */
736933707f3Ssthen#undef UNBOUND_DEBUG
737933707f3Ssthen
7382ee382b6Ssthen/* Define to 1 to use cachedb support */
7392ee382b6Ssthen#undef USE_CACHEDB
7402ee382b6Ssthen
7412be9e038Ssthen/* Define to 1 to enable dnscrypt support */
7422be9e038Ssthen#undef USE_DNSCRYPT
7432be9e038Ssthen
7442be9e038Ssthen/* Define to 1 to enable dnscrypt with xchacha20 support */
7452be9e038Ssthen#undef USE_DNSCRYPT_XCHACHA20
7462be9e038Ssthen
74798f3ca02Sbrad/* Define to 1 to enable dnstap support */
74898f3ca02Sbrad#undef USE_DNSTAP
74998f3ca02Sbrad
7502ee382b6Ssthen/* Define this to enable DSA support. */
7512ee382b6Ssthen#undef USE_DSA
7522ee382b6Ssthen
753d8d14d0cSsthen/* Define this to enable ECDSA support. */
754d8d14d0cSsthen#undef USE_ECDSA
755d8d14d0cSsthen
756d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */
757d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND
758d8d14d0cSsthen
7592be9e038Ssthen/* Define this to enable ED25519 support. */
7602be9e038Ssthen#undef USE_ED25519
7612be9e038Ssthen
76220237c55Ssthen/* Define this to enable ED448 support. */
76320237c55Ssthen#undef USE_ED448
76420237c55Ssthen
765933707f3Ssthen/* Define this to enable GOST support. */
766933707f3Ssthen#undef USE_GOST
767933707f3Ssthen
7682be9e038Ssthen/* Define to 1 to use ipsecmod support. */
7692be9e038Ssthen#undef USE_IPSECMOD
7702be9e038Ssthen
771933707f3Ssthen/* Define if you want to use internal select based events */
772933707f3Ssthen#undef USE_MINI_EVENT
773933707f3Ssthen
77477079be7Ssthen/* Define this to enable client TCP Fast Open. */
77577079be7Ssthen#undef USE_MSG_FASTOPEN
77677079be7Ssthen
77777079be7Ssthen/* Define this to enable client TCP Fast Open. */
77877079be7Ssthen#undef USE_OSX_MSG_FASTOPEN
77977079be7Ssthen
78020237c55Ssthen/* Define this to use hiredis client. */
78120237c55Ssthen#undef USE_REDIS
78220237c55Ssthen
7832be9e038Ssthen/* Define this to enable SHA1 support. */
7842be9e038Ssthen#undef USE_SHA1
7852be9e038Ssthen
786933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */
787933707f3Ssthen#undef USE_SHA2
788933707f3Ssthen
789933707f3Ssthen/* Enable extensions on AIX 3, Interix.  */
790933707f3Ssthen#ifndef _ALL_SOURCE
791933707f3Ssthen# undef _ALL_SOURCE
792933707f3Ssthen#endif
793933707f3Ssthen/* Enable GNU extensions on systems that have them.  */
794933707f3Ssthen#ifndef _GNU_SOURCE
795933707f3Ssthen# undef _GNU_SOURCE
796933707f3Ssthen#endif
797933707f3Ssthen/* Enable threading extensions on Solaris.  */
798933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS
799933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS
800933707f3Ssthen#endif
801933707f3Ssthen/* Enable extensions on HP NonStop.  */
802933707f3Ssthen#ifndef _TANDEM_SOURCE
803933707f3Ssthen# undef _TANDEM_SOURCE
804933707f3Ssthen#endif
805933707f3Ssthen/* Enable general extensions on Solaris.  */
806933707f3Ssthen#ifndef __EXTENSIONS__
807933707f3Ssthen# undef __EXTENSIONS__
808933707f3Ssthen#endif
809933707f3Ssthen
810933707f3Ssthen
81177079be7Ssthen/* Define this to enable server TCP Fast Open. */
81277079be7Ssthen#undef USE_TCP_FASTOPEN
81377079be7Ssthen
814933707f3Ssthen/* Whether the windows socket API is used */
815933707f3Ssthen#undef USE_WINSOCK
816933707f3Ssthen
817933707f3Ssthen/* the version of the windows API enabled */
818933707f3Ssthen#undef WINVER
819933707f3Ssthen
820933707f3Ssthen/* Define if you want Python module. */
821933707f3Ssthen#undef WITH_PYTHONMODULE
822933707f3Ssthen
823933707f3Ssthen/* Define if you want PyUnbound. */
824933707f3Ssthen#undef WITH_PYUNBOUND
825933707f3Ssthen
826933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
827933707f3Ssthen   `char[]'. */
828933707f3Ssthen#undef YYTEXT_POINTER
829933707f3Ssthen
830229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5.  */
831229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE
832229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1
833229e174cSsthen#endif
834229e174cSsthen
835933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */
836933707f3Ssthen#undef _FILE_OFFSET_BITS
837933707f3Ssthen
838933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
839933707f3Ssthen#undef _LARGEFILE_SOURCE
840933707f3Ssthen
841933707f3Ssthen/* Define for large files, on AIX-style hosts. */
842933707f3Ssthen#undef _LARGE_FILES
843933707f3Ssthen
844933707f3Ssthen/* Define to 1 if on MINIX. */
845933707f3Ssthen#undef _MINIX
846933707f3Ssthen
8475d76a658Ssthen/* Enable for compile on Minix */
8485d76a658Ssthen#undef _NETBSD_SOURCE
8495d76a658Ssthen
850933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with
851933707f3Ssthen   this defined. */
852933707f3Ssthen#undef _POSIX_1_SOURCE
853933707f3Ssthen
854933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */
855933707f3Ssthen#undef _POSIX_SOURCE
856933707f3Ssthen
857933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */
858933707f3Ssthen#undef const
859933707f3Ssthen
860933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */
861933707f3Ssthen#undef gid_t
862933707f3Ssthen
863933707f3Ssthen/* in_addr_t */
864933707f3Ssthen#undef in_addr_t
865933707f3Ssthen
866933707f3Ssthen/* in_port_t */
867933707f3Ssthen#undef in_port_t
868933707f3Ssthen
869933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler
870933707f3Ssthen   calls it, or to nothing if 'inline' is not supported under any name.  */
871933707f3Ssthen#ifndef __cplusplus
872933707f3Ssthen#undef inline
873933707f3Ssthen#endif
874933707f3Ssthen
875933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */
876933707f3Ssthen#undef int16_t
877933707f3Ssthen
878933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
879933707f3Ssthen#undef int32_t
880933707f3Ssthen
881933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */
882933707f3Ssthen#undef int64_t
883933707f3Ssthen
884933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */
885933707f3Ssthen#undef int8_t
886933707f3Ssthen
887933707f3Ssthen/* Define if replacement function should be used. */
888933707f3Ssthen#undef malloc
889933707f3Ssthen
890933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */
891933707f3Ssthen#undef off_t
892933707f3Ssthen
893933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
894933707f3Ssthen#undef pid_t
895933707f3Ssthen
896933707f3Ssthen/* Define to 'int' if not defined */
897933707f3Ssthen#undef rlim_t
898933707f3Ssthen
899933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */
900933707f3Ssthen#undef size_t
901933707f3Ssthen
902933707f3Ssthen/* Define to 'int' if not defined */
903933707f3Ssthen#undef socklen_t
904933707f3Ssthen
905933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
906933707f3Ssthen#undef ssize_t
907933707f3Ssthen
908933707f3Ssthen/* Define to 'unsigned char if not defined */
909933707f3Ssthen#undef u_char
910933707f3Ssthen
911933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */
912933707f3Ssthen#undef uid_t
913933707f3Ssthen
914933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */
915933707f3Ssthen#undef uint16_t
916933707f3Ssthen
917933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */
918933707f3Ssthen#undef uint32_t
919933707f3Ssthen
920933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */
921933707f3Ssthen#undef uint64_t
922933707f3Ssthen
923933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */
924933707f3Ssthen#undef uint8_t
925933707f3Ssthen
926933707f3Ssthen/* Define as `fork' if `vfork' does not work. */
927933707f3Ssthen#undef vfork
928933707f3Ssthen
929933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
930933707f3Ssthen#define _GNU_SOURCE 1
931933707f3Ssthen#endif
932933707f3Ssthen
933933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
934933707f3Ssthen#define _BSD_SOURCE 1
935933707f3Ssthen#endif
936933707f3Ssthen
93732e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
93832e31f52Ssthen#define _DEFAULT_SOURCE 1
93932e31f52Ssthen#endif
94032e31f52Ssthen
941933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
942933707f3Ssthen#define __EXTENSIONS__ 1
943933707f3Ssthen#endif
944933707f3Ssthen
945933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
946933707f3Ssthen#define _POSIX_C_SOURCE 200112
947933707f3Ssthen#endif
948933707f3Ssthen
949933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
950933707f3Ssthen#define _XOPEN_SOURCE 600
951933707f3Ssthen#endif
952933707f3Ssthen
953933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
954933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1
955933707f3Ssthen#endif
956933707f3Ssthen
957933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
958933707f3Ssthen#define _ALL_SOURCE 1
959933707f3Ssthen#endif
960933707f3Ssthen
961933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
962933707f3Ssthen#define _LARGEFILE_SOURCE 1
963933707f3Ssthen#endif
964933707f3Ssthen
965933707f3Ssthen
966933707f3Ssthen
967933707f3Ssthen
968933707f3Ssthen#ifndef UNBOUND_DEBUG
969933707f3Ssthen#  define NDEBUG
970933707f3Ssthen#endif
971933707f3Ssthen
9725d76a658Ssthen/** Use small-ldns codebase */
9735d76a658Ssthen#define USE_SLDNS 1
9745d76a658Ssthen#ifdef HAVE_SSL
9755d76a658Ssthen#  define LDNS_BUILD_CONFIG_HAVE_SSL 1
9765d76a658Ssthen#endif
9775d76a658Ssthen
978933707f3Ssthen#include <stdio.h>
979933707f3Ssthen#include <string.h>
980933707f3Ssthen#include <unistd.h>
981933707f3Ssthen#include <assert.h>
982933707f3Ssthen
983933707f3Ssthen#if STDC_HEADERS
984933707f3Ssthen#include <stdlib.h>
985933707f3Ssthen#include <stddef.h>
986933707f3Ssthen#endif
987933707f3Ssthen
9885d76a658Ssthen#ifdef HAVE_STDARG_H
9895d76a658Ssthen#include <stdarg.h>
9905d76a658Ssthen#endif
9915d76a658Ssthen
992933707f3Ssthen#ifdef HAVE_STDINT_H
993933707f3Ssthen#include <stdint.h>
994933707f3Ssthen#endif
995933707f3Ssthen
996933707f3Ssthen#include <errno.h>
997933707f3Ssthen
998933707f3Ssthen#if HAVE_SYS_PARAM_H
999933707f3Ssthen#include <sys/param.h>
1000933707f3Ssthen#endif
1001933707f3Ssthen
1002933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H
1003933707f3Ssthen#include <sys/socket.h>
1004933707f3Ssthen#endif
1005933707f3Ssthen
1006933707f3Ssthen#ifdef HAVE_SYS_UIO_H
1007933707f3Ssthen#include <sys/uio.h>
1008933707f3Ssthen#endif
1009933707f3Ssthen
1010933707f3Ssthen#ifdef HAVE_NETINET_IN_H
1011933707f3Ssthen#include <netinet/in.h>
1012933707f3Ssthen#endif
1013933707f3Ssthen
101432e31f52Ssthen#ifdef HAVE_NETINET_TCP_H
101532e31f52Ssthen#include <netinet/tcp.h>
101632e31f52Ssthen#endif
101732e31f52Ssthen
1018933707f3Ssthen#ifdef HAVE_ARPA_INET_H
1019933707f3Ssthen#include <arpa/inet.h>
1020933707f3Ssthen#endif
1021933707f3Ssthen
1022933707f3Ssthen#ifdef HAVE_WINSOCK2_H
1023933707f3Ssthen#include <winsock2.h>
1024933707f3Ssthen#endif
1025933707f3Ssthen
1026933707f3Ssthen#ifdef HAVE_WS2TCPIP_H
1027933707f3Ssthen#include <ws2tcpip.h>
1028933707f3Ssthen#endif
1029933707f3Ssthen
10305d76a658Ssthen#ifndef USE_WINSOCK
10315d76a658Ssthen#define ARG_LL "%ll"
10325d76a658Ssthen#else
10335d76a658Ssthen#define ARG_LL "%I64"
10345d76a658Ssthen#endif
10355d76a658Ssthen
1036b2cdf21fSsthen#ifndef AF_LOCAL
1037b2cdf21fSsthen#define AF_LOCAL AF_UNIX
1038b2cdf21fSsthen#endif
1039b2cdf21fSsthen
1040933707f3Ssthen
1041933707f3Ssthen
1042933707f3Ssthen#ifdef HAVE_ATTR_FORMAT
1043933707f3Ssthen#  define ATTR_FORMAT(archetype, string_index, first_to_check) \
1044933707f3Ssthen    __attribute__ ((format (archetype, string_index, first_to_check)))
1045933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */
1046933707f3Ssthen#  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1047933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */
1048933707f3Ssthen
1049933707f3Ssthen
1050933707f3Ssthen#if defined(DOXYGEN)
1051933707f3Ssthen#  define ATTR_UNUSED(x)  x
1052933707f3Ssthen#elif defined(__cplusplus)
1053933707f3Ssthen#  define ATTR_UNUSED(x)
1054933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED)
1055933707f3Ssthen#  define ATTR_UNUSED(x)  x __attribute__((unused))
1056933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */
1057933707f3Ssthen#  define ATTR_UNUSED(x)  x
1058933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */
1059933707f3Ssthen
1060933707f3Ssthen
1061933707f3Ssthen#ifndef HAVE_FSEEKO
1062933707f3Ssthen#define fseeko fseek
1063933707f3Ssthen#define ftello ftell
1064933707f3Ssthen#endif /* HAVE_FSEEKO */
1065933707f3Ssthen
1066933707f3Ssthen
1067933707f3Ssthen#ifndef MAXHOSTNAMELEN
1068933707f3Ssthen#define MAXHOSTNAMELEN 256
1069933707f3Ssthen#endif
1070933707f3Ssthen
107124893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1072933707f3Ssthen#define snprintf snprintf_unbound
1073933707f3Ssthen#define vsnprintf vsnprintf_unbound
1074933707f3Ssthen#include <stdarg.h>
1075933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...);
1076933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
107724893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1078933707f3Ssthen
1079933707f3Ssthen#ifndef HAVE_INET_PTON
1080933707f3Ssthen#define inet_pton inet_pton_unbound
1081933707f3Ssthenint inet_pton(int af, const char* src, void* dst);
1082933707f3Ssthen#endif /* HAVE_INET_PTON */
1083933707f3Ssthen
1084933707f3Ssthen
1085933707f3Ssthen#ifndef HAVE_INET_NTOP
1086933707f3Ssthen#define inet_ntop inet_ntop_unbound
1087933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
1088933707f3Ssthen#endif
1089933707f3Ssthen
1090933707f3Ssthen
1091933707f3Ssthen#ifndef HAVE_INET_ATON
1092933707f3Ssthen#define inet_aton inet_aton_unbound
1093933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr);
1094933707f3Ssthen#endif
1095933707f3Ssthen
1096933707f3Ssthen
1097933707f3Ssthen#ifndef HAVE_MEMMOVE
1098933707f3Ssthen#define memmove memmove_unbound
1099933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n);
1100933707f3Ssthen#endif
1101933707f3Ssthen
1102933707f3Ssthen
11035d76a658Ssthen#ifndef HAVE_STRLCAT
11045d76a658Ssthen#define strlcat strlcat_unbound
11055d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz);
11065d76a658Ssthen#endif
11075d76a658Ssthen
11085d76a658Ssthen
1109933707f3Ssthen#ifndef HAVE_STRLCPY
1110933707f3Ssthen#define strlcpy strlcpy_unbound
1111933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz);
1112933707f3Ssthen#endif
1113933707f3Ssthen
1114933707f3Ssthen
1115933707f3Ssthen#ifndef HAVE_GMTIME_R
1116933707f3Ssthen#define gmtime_r gmtime_r_unbound
1117933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result);
1118933707f3Ssthen#endif
1119933707f3Ssthen
1120933707f3Ssthen
1121fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY
1122fdfb4ba6Ssthen#define reallocarray reallocarrayunbound
1123fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size);
1124fdfb4ba6Ssthen#endif
1125fdfb4ba6Ssthen
1126fdfb4ba6Ssthen
1127229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1128933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */
1129933707f3Ssthen#endif /* HAVE_SLEEP */
1130933707f3Ssthen
1131933707f3Ssthen
1132933707f3Ssthen#ifndef HAVE_USLEEP
1133933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1134933707f3Ssthen#endif /* HAVE_USLEEP */
1135933707f3Ssthen
1136933707f3Ssthen
1137933707f3Ssthen#ifndef HAVE_RANDOM
1138933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */
1139933707f3Ssthen#endif /* HAVE_RANDOM */
1140933707f3Ssthen
1141933707f3Ssthen
1142933707f3Ssthen#ifndef HAVE_SRANDOM
1143933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1144933707f3Ssthen#endif /* HAVE_SRANDOM */
1145933707f3Ssthen
1146933707f3Ssthen
1147933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1148933707f3Ssthen#ifdef HAVE_WINSOCK2_H
1149933707f3Ssthen#define FD_SET_T (u_int)
1150933707f3Ssthen#else
1151933707f3Ssthen#define FD_SET_T
1152933707f3Ssthen#endif
1153933707f3Ssthen
1154933707f3Ssthen
1155933707f3Ssthen#ifndef IPV6_MIN_MTU
1156933707f3Ssthen#define IPV6_MIN_MTU 1280
1157933707f3Ssthen#endif /* IPV6_MIN_MTU */
1158933707f3Ssthen
1159933707f3Ssthen
1160933707f3Ssthen#ifdef MEMCMP_IS_BROKEN
1161d8d14d0cSsthen#include "compat/memcmp.h"
1162933707f3Ssthen#define memcmp memcmp_unbound
1163933707f3Ssthenint memcmp(const void *x, const void *y, size_t n);
1164933707f3Ssthen#endif
1165933707f3Ssthen
1166933707f3Ssthen
1167933707f3Ssthen
1168933707f3Ssthen#ifndef HAVE_CTIME_R
1169933707f3Ssthen#define ctime_r unbound_ctime_r
1170933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf);
1171933707f3Ssthen#endif
1172933707f3Ssthen
11732ee382b6Ssthen#ifndef HAVE_STRSEP
11742ee382b6Ssthen#define strsep unbound_strsep
11752ee382b6Ssthenchar *strsep(char **stringp, const char *delim);
11762ee382b6Ssthen#endif
11772ee382b6Ssthen
117824893edcSsthen#ifndef HAVE_ISBLANK
117924893edcSsthen#define isblank unbound_isblank
118024893edcSsthenint isblank(int c);
118124893edcSsthen#endif
118224893edcSsthen
1183452a1548Ssthen#ifndef HAVE_EXPLICIT_BZERO
1184452a1548Ssthen#define explicit_bzero unbound_explicit_bzero
1185452a1548Ssthenvoid explicit_bzero(void* buf, size_t len);
1186452a1548Ssthen#endif
1187452a1548Ssthen
118877079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
118977079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
119077079be7Ssthen#endif
119177079be7Ssthen
119277079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
119377079be7Ssthenint inet_pton(int af, const char* src, void* dst);
119477079be7Ssthen#endif
119577079be7Ssthen
1196933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1197933707f3Ssthen#define strptime unbound_strptime
1198933707f3Ssthenstruct tm;
1199933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm);
1200933707f3Ssthen#endif
1201933707f3Ssthen
120298f3ca02Sbrad#ifdef HAVE_LIBRESSL
120398f3ca02Sbrad#  if !HAVE_DECL_STRLCPY
120498f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz);
120598f3ca02Sbrad#  endif
120698f3ca02Sbrad#  if !HAVE_DECL_STRLCAT
120798f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz);
120898f3ca02Sbrad#  endif
120998f3ca02Sbrad#  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
121098f3ca02Sbraduint32_t arc4random(void);
121198f3ca02Sbrad#  endif
121298f3ca02Sbrad#  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
121398f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound);
121498f3ca02Sbrad#  endif
1215fdfb4ba6Ssthen#  if !HAVE_DECL_REALLOCARRAY
1216fdfb4ba6Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size);
1217fdfb4ba6Ssthen#  endif
121898f3ca02Sbrad#endif /* HAVE_LIBRESSL */
121998f3ca02Sbrad#ifndef HAVE_ARC4RANDOM
122098f3ca02Sbradint getentropy(void* buf, size_t len);
122198f3ca02Sbraduint32_t arc4random(void);
122298f3ca02Sbradvoid arc4random_buf(void* buf, size_t n);
122398f3ca02Sbradvoid _ARC4_LOCK(void);
122498f3ca02Sbradvoid _ARC4_UNLOCK(void);
1225938a3a5eSflorianvoid _ARC4_LOCK_DESTROY(void);
122698f3ca02Sbrad#endif
122798f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM
122898f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound);
122998f3ca02Sbrad#endif
123098f3ca02Sbrad#ifdef COMPAT_SHA512
123198f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH
123298f3ca02Sbrad#define SHA512_BLOCK_LENGTH		128
123398f3ca02Sbrad#define SHA512_DIGEST_LENGTH		64
123498f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH	(SHA512_DIGEST_LENGTH * 2 + 1)
123598f3ca02Sbradtypedef struct _SHA512_CTX {
123698f3ca02Sbrad	uint64_t	state[8];
123798f3ca02Sbrad	uint64_t	bitcount[2];
123898f3ca02Sbrad	uint8_t	buffer[SHA512_BLOCK_LENGTH];
123998f3ca02Sbrad} SHA512_CTX;
124098f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */
124198f3ca02Sbradvoid SHA512_Init(SHA512_CTX*);
124298f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t);
124398f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
124498f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
124598f3ca02Sbrad#endif /* COMPAT_SHA512 */
124698f3ca02Sbrad
124798f3ca02Sbrad
124898f3ca02Sbrad
1249933707f3Ssthen#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))
1250933707f3Ssthen   /* using version of libevent that is not threadsafe. */
1251933707f3Ssthen#  define LIBEVENT_SIGNAL_PROBLEM 1
1252933707f3Ssthen#endif
1253933707f3Ssthen
1254933707f3Ssthen#ifndef CHECKED_INET6
1255933707f3Ssthen#  define CHECKED_INET6
1256933707f3Ssthen#  ifdef AF_INET6
1257933707f3Ssthen#    define INET6
1258933707f3Ssthen#  else
1259933707f3Ssthen#    define AF_INET6        28
1260933707f3Ssthen#  endif
1261933707f3Ssthen#endif /* CHECKED_INET6 */
1262933707f3Ssthen
1263933707f3Ssthen#ifndef HAVE_GETADDRINFO
1264933707f3Ssthenstruct sockaddr_storage;
1265933707f3Ssthen#include "compat/fake-rfc2553.h"
1266933707f3Ssthen#endif
1267933707f3Ssthen
1268933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS
1269933707f3Ssthen#  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1270933707f3Ssthen#  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1271933707f3Ssthen#  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1272933707f3Ssthen#  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1273933707f3Ssthenvoid *unbound_stat_malloc(size_t size);
1274933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size);
1275933707f3Ssthenvoid unbound_stat_free(void *ptr);
1276933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size);
1277933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line,
1278933707f3Ssthen	const char* func);
1279933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1280933707f3Ssthen	int line, const char* func);
1281933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line,
1282933707f3Ssthen	const char* func);
1283933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1284933707f3Ssthen	int line, const char* func);
1285933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE)
1286933707f3Ssthen#  include "util/alloc.h"
1287933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1288933707f3Ssthen
1289933707f3Ssthen/** default port for DNS traffic. */
1290933707f3Ssthen#define UNBOUND_DNS_PORT 53
129120237c55Ssthen/** default port for DNS over TLS traffic. */
129220237c55Ssthen#define UNBOUND_DNS_OVER_TLS_PORT 853
1293933707f3Ssthen/** default port for unbound control traffic, registered port with IANA,
1294933707f3Ssthen    ub-dns-control  8953/tcp    unbound dns nameserver control */
1295933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953
1296933707f3Ssthen/** the version of unbound-control that this software implements */
1297933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1
1298933707f3Ssthen
1299933707f3Ssthen
1300