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