xref: /dragonfly/lib/libldns/ldns/config.h (revision a4da4a90)
1 /* ldns/config.h.  Generated from config.h.in by configure.  */
2 /* ldns/config.h.in.  Generated from configure.ac by autoheader.  */
3 
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
6 
7 /* Define to 1 if you have the <arpa/inet.h> header file. */
8 #define HAVE_ARPA_INET_H 1
9 
10 /* Whether the C compiler accepts the "format" attribute */
11 #define HAVE_ATTR_FORMAT 1
12 
13 /* Whether the C compiler accepts the "unused" attribute */
14 #define HAVE_ATTR_UNUSED 1
15 
16 /* Define to 1 if you have the `b32_ntop' function. */
17 /* #undef HAVE_B32_NTOP */
18 
19 /* Define to 1 if you have the `b32_pton' function. */
20 /* #undef HAVE_B32_PTON */
21 
22 /* Define to 1 if you have the `b64_ntop' function. */
23 /* #undef HAVE_B64_NTOP */
24 
25 /* Define to 1 if you have the `b64_pton' function. */
26 /* #undef HAVE_B64_PTON */
27 
28 /* Define to 1 if you have the `bzero' function. */
29 #define HAVE_BZERO 1
30 
31 /* Define to 1 if you have the `calloc' function. */
32 #define HAVE_CALLOC 1
33 
34 /* Define to 1 if you have the `ctime_r' function. */
35 #define HAVE_CTIME_R 1
36 
37 /* Is a CAFILE given at configure time */
38 #define HAVE_DANE_CA_FILE 0
39 
40 /* Is a CAPATH given at configure time */
41 #define HAVE_DANE_CA_PATH 0
42 
43 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
44    don't. */
45 #define HAVE_DECL_NID_ED25519 0
46 
47 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
48    don't. */
49 #define HAVE_DECL_NID_ED448 0
50 
51 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
52    don't. */
53 #define HAVE_DECL_NID_SECP384R1 1
54 
55 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
56    if you don't. */
57 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
58 
59 /* Define to 1 if you have the <dlfcn.h> header file. */
60 /* #undef HAVE_DLFCN_H */
61 
62 /* Define to 1 if you have the `DSA_get0_key' function. */
63 #define HAVE_DSA_GET0_KEY 1
64 
65 /* Define to 1 if you have the `DSA_get0_pqg' function. */
66 #define HAVE_DSA_GET0_PQG 1
67 
68 /* Define to 1 if you have the `DSA_SIG_get0' function. */
69 #define HAVE_DSA_SIG_GET0 1
70 
71 /* Define to 1 if you have the `DSA_SIG_set0' function. */
72 #define HAVE_DSA_SIG_SET0 1
73 
74 /* Define to 1 if you have the `ECDSA_SIG_get0' function. */
75 #define HAVE_ECDSA_SIG_GET0 1
76 
77 /* Define to 1 if you have the `endprotoent' function. */
78 #define HAVE_ENDPROTOENT 1
79 
80 /* Define to 1 if you have the `endservent' function. */
81 #define HAVE_ENDSERVENT 1
82 
83 /* Define to 1 if you have the `ENGINE_load_cryptodev' function. */
84 /* #undef HAVE_ENGINE_LOAD_CRYPTODEV */
85 
86 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
87 #define HAVE_ERR_LOAD_CRYPTO_STRINGS 1
88 
89 /* Define to 1 if you have the `EVP_dss1' function. */
90 #define HAVE_EVP_DSS1 1
91 
92 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
93 #define HAVE_EVP_MD_CTX_NEW 1
94 
95 /* Define to 1 if you have the `EVP_PKEY_base_id' function. */
96 #define HAVE_EVP_PKEY_BASE_ID 1
97 
98 /* Define to 1 if you have the `EVP_PKEY_keygen' function. */
99 #define HAVE_EVP_PKEY_KEYGEN 1
100 
101 /* Define to 1 if you have the `EVP_sha256' function. */
102 #define HAVE_EVP_SHA256 1
103 
104 /* Define to 1 if you have the `EVP_sha384' function. */
105 #define HAVE_EVP_SHA384 1
106 
107 /* Define to 1 if you have the `EVP_sha512' function. */
108 #define HAVE_EVP_SHA512 1
109 
110 /* Define to 1 if you have the `fcntl' function. */
111 #define HAVE_FCNTL 1
112 
113 /* Define to 1 if you have the `fork' function. */
114 #define HAVE_FORK 1
115 
116 /* Whether getaddrinfo is available */
117 #define HAVE_GETADDRINFO 1
118 
119 /* Define to 1 if you have the <getopt.h> header file. */
120 #define HAVE_GETOPT_H 1
121 
122 /* Define to 1 if you have the `gmtime_r' function. */
123 #define HAVE_GMTIME_R 1
124 
125 /* If you have HMAC_Update */
126 #define HAVE_HMAC_UPDATE 1
127 
128 /* Define to 1 if you have the `inet_aton' function. */
129 #define HAVE_INET_ATON 1
130 
131 /* Define to 1 if you have the `inet_ntop' function. */
132 #define HAVE_INET_NTOP 1
133 
134 /* Define to 1 if you have the `inet_pton' function. */
135 #define HAVE_INET_PTON 1
136 
137 /* define if you have inttypes.h */
138 #define HAVE_INTTYPES_H 1
139 
140 /* if the function 'ioctlsocket' is available */
141 /* #undef HAVE_IOCTLSOCKET */
142 
143 /* Define to 1 if you have the `isascii' function. */
144 #define HAVE_ISASCII 1
145 
146 /* Define to 1 if you have the `isblank' function. */
147 #define HAVE_ISBLANK 1
148 
149 /* Define to 1 if you have the `pcap' library (-lpcap). */
150 /* #undef HAVE_LIBPCAP */
151 
152 /* Define if we have LibreSSL */
153 #define HAVE_LIBRESSL 1
154 
155 /* Define to 1 if you have the `localtime_r' function. */
156 #define HAVE_LOCALTIME_R 1
157 
158 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
159    to 0 otherwise. */
160 #define HAVE_MALLOC 1
161 
162 /* Define to 1 if you have the `memmove' function. */
163 #define HAVE_MEMMOVE 1
164 
165 /* Define to 1 if you have the <memory.h> header file. */
166 #define HAVE_MEMORY_H 1
167 
168 /* Define to 1 if you have the `memset' function. */
169 #define HAVE_MEMSET 1
170 
171 /* Define to 1 if you have the <netdb.h> header file. */
172 #define HAVE_NETDB_H 1
173 
174 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
175 /* #undef HAVE_NETINET_IF_ETHER_H */
176 
177 /* Define to 1 if you have the <netinet/igmp.h> header file. */
178 /* #undef HAVE_NETINET_IGMP_H */
179 
180 /* Define to 1 if you have the <netinet/in.h> header file. */
181 #define HAVE_NETINET_IN_H 1
182 
183 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
184 /* #undef HAVE_NETINET_IN_SYSTM_H */
185 
186 /* Define to 1 if you have the <netinet/ip6.h> header file. */
187 /* #undef HAVE_NETINET_IP6_H */
188 
189 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
190 /* #undef HAVE_NETINET_IP_COMPAT_H */
191 
192 /* Define to 1 if you have the <netinet/ip.h> header file. */
193 /* #undef HAVE_NETINET_IP_H */
194 
195 /* Define to 1 if you have the <netinet/udp.h> header file. */
196 /* #undef HAVE_NETINET_UDP_H */
197 
198 /* Define to 1 if you have the <net/ethernet.h> header file. */
199 /* #undef HAVE_NET_ETHERNET_H */
200 
201 /* Define to 1 if you have the <net/if.h> header file. */
202 /* #undef HAVE_NET_IF_H */
203 
204 /* Define to 1 if you have the <openssl/err.h> header file. */
205 #define HAVE_OPENSSL_ERR_H 1
206 
207 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
208 #define HAVE_OPENSSL_INIT_CRYPTO 1
209 
210 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
211 /* #undef HAVE_OPENSSL_INIT_SSL */
212 
213 /* Define to 1 if you have the <openssl/rand.h> header file. */
214 #define HAVE_OPENSSL_RAND_H 1
215 
216 /* Define to 1 if you have the <openssl/ssl.h> header file. */
217 #define HAVE_OPENSSL_SSL_H 1
218 
219 /* Define to 1 if you have the <pcap.h> header file. */
220 /* #undef HAVE_PCAP_H */
221 
222 /* This platform supports poll(7). */
223 #define HAVE_POLL 1
224 
225 /* If available, contains the Python version number currently in use. */
226 /* #undef HAVE_PYTHON */
227 
228 /* Define to 1 if you have the `random' function. */
229 #define HAVE_RANDOM 1
230 
231 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
232    and to 0 otherwise. */
233 #define HAVE_REALLOC 1
234 
235 /* Define to 1 if you have the `sleep' function. */
236 #define HAVE_SLEEP 1
237 
238 /* Define to 1 if you have the `snprintf' function. */
239 #define HAVE_SNPRINTF 1
240 
241 /* Define if you have the SSL libraries installed. */
242 #define HAVE_SSL /**/
243 
244 /* Define to 1 if you have the <stdarg.h> header file. */
245 #define HAVE_STDARG_H 1
246 
247 /* Define to 1 if stdbool.h conforms to C99. */
248 #define HAVE_STDBOOL_H 1
249 
250 /* Define to 1 if you have the <stdint.h> header file. */
251 #define HAVE_STDINT_H 1
252 
253 /* Define to 1 if you have the <stdlib.h> header file. */
254 #define HAVE_STDLIB_H 1
255 
256 /* Define to 1 if you have the <strings.h> header file. */
257 #define HAVE_STRINGS_H 1
258 
259 /* Define to 1 if you have the <string.h> header file. */
260 #define HAVE_STRING_H 1
261 
262 /* Define to 1 if you have the `strlcpy' function. */
263 #define HAVE_STRLCPY 1
264 
265 /* Define to 1 if you have the `strtoul' function. */
266 #define HAVE_STRTOUL 1
267 
268 /* Define if you have SWIG libraries and header files. */
269 /* #undef HAVE_SWIG */
270 
271 /* Define to 1 if you have the <sys/mount.h> header file. */
272 #define HAVE_SYS_MOUNT_H 1
273 
274 /* Define to 1 if you have the <sys/param.h> header file. */
275 #define HAVE_SYS_PARAM_H 1
276 
277 /* define if you have sys/socket.h */
278 #define HAVE_SYS_SOCKET_H 1
279 
280 /* Define to 1 if you have the <sys/stat.h> header file. */
281 #define HAVE_SYS_STAT_H 1
282 
283 /* define if you have sys/types.h */
284 #define HAVE_SYS_TYPES_H 1
285 
286 /* Define to 1 if you have the `timegm' function. */
287 #define HAVE_TIMEGM 1
288 
289 /* Define to 1 if you have the <time.h> header file. */
290 #define HAVE_TIME_H 1
291 
292 /* define if you have unistd.h */
293 #define HAVE_UNISTD_H 1
294 
295 /* Define to 1 if you have the `vfork' function. */
296 #define HAVE_VFORK 1
297 
298 /* Define to 1 if you have the <vfork.h> header file. */
299 /* #undef HAVE_VFORK_H */
300 
301 /* Define to 1 if you have the <winsock2.h> header file. */
302 /* #undef HAVE_WINSOCK2_H */
303 
304 /* Define to 1 if `fork' works. */
305 #define HAVE_WORKING_FORK 1
306 
307 /* Define to 1 if `vfork' works. */
308 #define HAVE_WORKING_VFORK 1
309 
310 /* Define to 1 if you have the <ws2tcpip.h> header file. */
311 /* #undef HAVE_WS2TCPIP_H */
312 
313 /* Define to 1 if the system has the type `_Bool'. */
314 #define HAVE__BOOL 1
315 
316 /* Is a CAFILE given at configure time */
317 /* #undef LDNS_DANE_CA_FILE */
318 
319 /* Is a CAPATH given at configure time */
320 /* #undef LDNS_DANE_CA_PATH */
321 
322 /* Define to the sub-directory where libtool stores uninstalled libraries. */
323 #define LT_OBJDIR ".libs/"
324 
325 /* Define to the address where bug reports for this package should be sent. */
326 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
327 
328 /* Define to the full name of this package. */
329 #define PACKAGE_NAME "ldns"
330 
331 /* Define to the full name and version of this package. */
332 #define PACKAGE_STRING "ldns 1.7.1"
333 
334 /* Define to the one symbol short name of this package. */
335 #define PACKAGE_TARNAME "libdns"
336 
337 /* Define to the home page for this package. */
338 #define PACKAGE_URL ""
339 
340 /* Define to the version of this package. */
341 #define PACKAGE_VERSION "1.7.1"
342 
343 /* Define this to enable RR type AMTRELAY. */
344 /* #undef RRTYPE_AMTRELAY */
345 
346 /* Define this to enable RR type AVC. */
347 /* #undef RRTYPE_AVC */
348 
349 /* Define this to enable RR type DOA. */
350 /* #undef RRTYPE_DOA */
351 
352 /* Define this to enable RR type NINFO. */
353 /* #undef RRTYPE_NINFO */
354 
355 /* Define this to enable RR type OPENPGPKEY. */
356 #define RRTYPE_OPENPGPKEY /**/
357 
358 /* Define this to enable RR type RKEY. */
359 /* #undef RRTYPE_RKEY */
360 
361 /* Define this to enable RR type TA. */
362 /* #undef RRTYPE_TA */
363 
364 /* The size of `time_t', as computed by sizeof. */
365 #define SIZEOF_TIME_T 8
366 
367 /* Define to 1 if you have the ANSI C header files. */
368 #define STDC_HEADERS 1
369 
370 /* Define this to enable messages to stderr. */
371 /* #undef STDERR_MSGS */
372 
373 /* System configuration dir */
374 #define SYSCONFDIR sysconfdir
375 
376 /* Define this to enable DANE support. */
377 #define USE_DANE 1
378 
379 /* Define this to enable DANE-TA usage type support. */
380 /* #undef USE_DANE_TA_USAGE */
381 
382 /* Define this to enable DANE verify support. */
383 #define USE_DANE_VERIFY 1
384 
385 /* Define this to enable DSA support. */
386 #define USE_DSA 1
387 
388 /* Define this to enable ECDSA support. */
389 #define USE_ECDSA 1
390 
391 /* Define this to enable ED25519 support. */
392 /* #undef USE_ED25519 */
393 
394 /* Define this to enable ED448 support. */
395 /* #undef USE_ED448 */
396 
397 /* Define this to enable GOST support. */
398 /* #undef USE_GOST */
399 
400 /* Define this to enable SHA256 and SHA512 support. */
401 #define USE_SHA2 1
402 
403 /* Enable extensions on AIX 3, Interix.  */
404 #ifndef _ALL_SOURCE
405 # define _ALL_SOURCE 1
406 #endif
407 /* Enable GNU extensions on systems that have them.  */
408 #ifndef _GNU_SOURCE
409 # define _GNU_SOURCE 1
410 #endif
411 /* Enable threading extensions on Solaris.  */
412 #ifndef _POSIX_PTHREAD_SEMANTICS
413 # define _POSIX_PTHREAD_SEMANTICS 1
414 #endif
415 /* Enable extensions on HP NonStop.  */
416 #ifndef _TANDEM_SOURCE
417 # define _TANDEM_SOURCE 1
418 #endif
419 /* Enable general extensions on Solaris.  */
420 #ifndef __EXTENSIONS__
421 # define __EXTENSIONS__ 1
422 #endif
423 
424 
425 /* Whether the windows socket API is used */
426 /* #undef USE_WINSOCK */
427 
428 /* the version of the windows API enabled */
429 #define WINVER 0x0502
430 
431 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
432    significant byte first (like Motorola and SPARC, unlike Intel). */
433 #if defined AC_APPLE_UNIVERSAL_BUILD
434 # if defined __BIG_ENDIAN__
435 #  define WORDS_BIGENDIAN 1
436 # endif
437 #else
438 # ifndef WORDS_BIGENDIAN
439 /* #  undef WORDS_BIGENDIAN */
440 # endif
441 #endif
442 
443 /* Define to 1 if on MINIX. */
444 /* #undef _MINIX */
445 
446 /* Enable for compile on Minix */
447 /* #undef _NETBSD_SOURCE */
448 
449 /* Define to 2 if the system does not provide POSIX.1 features except with
450    this defined. */
451 /* #undef _POSIX_1_SOURCE */
452 
453 /* Define to 1 if you need to in order for `stat' and other things to work. */
454 /* #undef _POSIX_SOURCE */
455 
456 /* Define to empty if `const' does not conform to ANSI C. */
457 /* #undef const */
458 
459 /* in_addr_t */
460 /* #undef in_addr_t */
461 
462 /* in_port_t */
463 /* #undef in_port_t */
464 
465 /* Define to `__inline__' or `__inline' if that's what the C compiler
466    calls it, or to nothing if 'inline' is not supported under any name.  */
467 #ifndef __cplusplus
468 /* #undef inline */
469 #endif
470 
471 /* Define to `short' if <sys/types.h> does not define. */
472 /* #undef int16_t */
473 
474 /* Define to `int' if <sys/types.h> does not define. */
475 /* #undef int32_t */
476 
477 /* Define to `long long' if <sys/types.h> does not define. */
478 /* #undef int64_t */
479 
480 /* Define to `char' if <sys/types.h> does not define. */
481 /* #undef int8_t */
482 
483 /* Define to `size_t' if <sys/types.h> does not define. */
484 /* #undef intptr_t */
485 
486 /* Define to rpl_malloc if the replacement function should be used. */
487 /* #undef malloc */
488 
489 /* Define to `int' if <sys/types.h> does not define. */
490 /* #undef pid_t */
491 
492 /* Define to rpl_realloc if the replacement function should be used. */
493 /* #undef realloc */
494 
495 /* Define to `unsigned int' if <sys/types.h> does not define. */
496 /* #undef size_t */
497 
498 /* Define to 'int' if not defined */
499 /* #undef socklen_t */
500 
501 /* Fallback member name for socket family in struct sockaddr_storage */
502 /* #undef ss_family */
503 
504 /* Define to `int' if <sys/types.h> does not define. */
505 /* #undef ssize_t */
506 
507 /* Define to `unsigned short' if <sys/types.h> does not define. */
508 /* #undef uint16_t */
509 
510 /* Define to `unsigned int' if <sys/types.h> does not define. */
511 /* #undef uint32_t */
512 
513 /* Define to `unsigned long long' if <sys/types.h> does not define. */
514 /* #undef uint64_t */
515 
516 /* Define to `unsigned char' if <sys/types.h> does not define. */
517 /* #undef uint8_t */
518 
519 /* Define as `fork' if `vfork' does not work. */
520 /* #undef vfork */
521 
522 
523 #include <stdio.h>
524 #include <string.h>
525 #include <unistd.h>
526 #include <assert.h>
527 
528 #ifndef LITTLE_ENDIAN
529 #define LITTLE_ENDIAN 1234
530 #endif
531 
532 #ifndef BIG_ENDIAN
533 #define BIG_ENDIAN 4321
534 #endif
535 
536 #ifndef BYTE_ORDER
537 #ifdef WORDS_BIGENDIAN
538 #define BYTE_ORDER BIG_ENDIAN
539 #else
540 #define BYTE_ORDER LITTLE_ENDIAN
541 #endif /* WORDS_BIGENDIAN */
542 #endif /* BYTE_ORDER */
543 
544 #if STDC_HEADERS
545 #include <stdlib.h>
546 #include <stddef.h>
547 #endif
548 
549 #ifdef HAVE_STDINT_H
550 #include <stdint.h>
551 #endif
552 
553 #ifdef HAVE_SYS_SOCKET_H
554 #include <sys/socket.h>
555 #endif
556 
557 #ifdef HAVE_NETINET_IN_H
558 #include <netinet/in.h>
559 #endif
560 
561 #ifdef HAVE_ARPA_INET_H
562 #include <arpa/inet.h>
563 #endif
564 
565 #ifdef HAVE_WINSOCK2_H
566 #include <winsock2.h>
567 #endif
568 
569 #ifdef HAVE_WS2TCPIP_H
570 #include <ws2tcpip.h>
571 #endif
572 
573 
574 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
575 #ifdef HAVE_WINSOCK2_H
576 #define FD_SET_T (u_int)
577 #else
578 #define FD_SET_T
579 #endif
580 
581 
582 
583 
584 #ifdef __cplusplus
585 extern "C" {
586 #endif
587 
588 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
589 	 	  char *target, size_t targsize);
590 /**
591  * calculates the size needed to store the result of b64_ntop
592  */
593 /*@unused@*/
594 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
595 {
596 	return ((((srcsize + 2) / 3) * 4) + 1);
597 }
598 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
599 /**
600  * calculates the size needed to store the result of ldns_b64_pton
601  */
602 /*@unused@*/
603 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
604 {
605 	return (((((srcsize + 3) / 4) * 3)) + 1);
606 }
607 
608 /**
609  * Given in dnssec_zone.c, also used in dnssec_sign.c:w
610 
611  */
612 int ldns_dname_compare_v(const void *a, const void *b);
613 
614 #ifndef HAVE_SLEEP
615 /* use windows sleep, in millisecs, instead */
616 #define sleep(x) Sleep((x)*1000)
617 #endif
618 
619 #ifndef HAVE_RANDOM
620 #define srandom(x) srand(x)
621 #define random(x) rand(x)
622 #endif
623 
624 #ifndef HAVE_TIMEGM
625 #include <time.h>
626 time_t timegm (struct tm *tm);
627 #endif /* !TIMEGM */
628 #ifndef HAVE_GMTIME_R
629 struct tm *gmtime_r(const time_t *timep, struct tm *result);
630 #endif
631 #ifndef HAVE_LOCALTIME_R
632 struct tm *localtime_r(const time_t *timep, struct tm *result);
633 #endif
634 #ifndef HAVE_ISBLANK
635 int isblank(int c);
636 #endif /* !HAVE_ISBLANK */
637 #ifndef HAVE_ISASCII
638 int isascii(int c);
639 #endif /* !HAVE_ISASCII */
640 #ifndef HAVE_SNPRINTF
641 #include <stdarg.h>
642 int snprintf (char *str, size_t count, const char *fmt, ...);
643 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
644 #endif /* HAVE_SNPRINTF */
645 #ifndef HAVE_INET_PTON
646 int inet_pton(int af, const char* src, void* dst);
647 #endif /* HAVE_INET_PTON */
648 #ifndef HAVE_INET_NTOP
649 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
650 #endif
651 #ifndef HAVE_INET_ATON
652 int inet_aton(const char *cp, struct in_addr *addr);
653 #endif
654 #ifndef HAVE_MEMMOVE
655 void *memmove(void *dest, const void *src, size_t n);
656 #endif
657 #ifndef HAVE_STRLCPY
658 size_t strlcpy(char *dst, const char *src, size_t siz);
659 #endif
660 
661 #ifdef USE_WINSOCK
662 #define SOCK_INVALID INVALID_SOCKET
663 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
664 #else
665 #define SOCK_INVALID -1
666 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
667 #endif
668 
669 #ifdef __cplusplus
670 }
671 #endif
672 #ifndef HAVE_GETADDRINFO
673 #include "compat/fake-rfc2553.h"
674 #endif
675 #ifndef HAVE_STRTOUL
676 #define strtoul (unsigned long)strtol
677 #endif
678 
679 /* Default trust anchor file */
680 /* Added here from previous ldns version config.h, avoids long CFLAG */
681 #define LDNS_TRUST_ANCHOR_FILE "/usr/local/etc/unbound/root.key"
682