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