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