1238104Sdes/* ldns/config.h.in.  Generated from configure.ac by autoheader.  */
2238104Sdes
3238104Sdes/* Define if building universal (internal helper macro) */
4238104Sdes#undef AC_APPLE_UNIVERSAL_BUILD
5238104Sdes
6238104Sdes/* Define to 1 if you have the <arpa/inet.h> header file. */
7238104Sdes#undef HAVE_ARPA_INET_H
8238104Sdes
9238104Sdes/* Whether the C compiler accepts the "format" attribute */
10238104Sdes#undef HAVE_ATTR_FORMAT
11238104Sdes
12238104Sdes/* Whether the C compiler accepts the "unused" attribute */
13238104Sdes#undef HAVE_ATTR_UNUSED
14238104Sdes
15238104Sdes/* Define to 1 if you have the `b32_ntop' function. */
16238104Sdes#undef HAVE_B32_NTOP
17238104Sdes
18238104Sdes/* Define to 1 if you have the `b32_pton' function. */
19238104Sdes#undef HAVE_B32_PTON
20238104Sdes
21238104Sdes/* Define to 1 if you have the `b64_ntop' function. */
22238104Sdes#undef HAVE_B64_NTOP
23238104Sdes
24238104Sdes/* Define to 1 if you have the `b64_pton' function. */
25238104Sdes#undef HAVE_B64_PTON
26238104Sdes
27238104Sdes/* Define to 1 if you have the `bzero' function. */
28238104Sdes#undef HAVE_BZERO
29238104Sdes
30238104Sdes/* Define to 1 if you have the `calloc' function. */
31238104Sdes#undef HAVE_CALLOC
32238104Sdes
33238104Sdes/* Define to 1 if you have the `ctime_r' function. */
34238104Sdes#undef HAVE_CTIME_R
35238104Sdes
36246854Sdes/* Is a CAFILE given at configure time */
37246854Sdes#undef HAVE_DANE_CA_FILE
38246854Sdes
39246854Sdes/* Is a CAPATH given at configure time */
40246854Sdes#undef HAVE_DANE_CA_PATH
41246854Sdes
42238104Sdes/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
43238104Sdes   don't. */
44238104Sdes#undef HAVE_DECL_NID_SECP384R1
45238104Sdes
46238104Sdes/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
47238104Sdes   if you don't. */
48238104Sdes#undef HAVE_DECL_NID_X9_62_PRIME256V1
49238104Sdes
50238104Sdes/* Define to 1 if you have the <dlfcn.h> header file. */
51238104Sdes#undef HAVE_DLFCN_H
52238104Sdes
53238104Sdes/* Define to 1 if you have the `endprotoent' function. */
54238104Sdes#undef HAVE_ENDPROTOENT
55238104Sdes
56238104Sdes/* Define to 1 if you have the `endservent' function. */
57238104Sdes#undef HAVE_ENDSERVENT
58238104Sdes
59238104Sdes/* Define to 1 if you have the `EVP_sha256' function. */
60238104Sdes#undef HAVE_EVP_SHA256
61238104Sdes
62238104Sdes/* Define to 1 if you have the `fcntl' function. */
63238104Sdes#undef HAVE_FCNTL
64238104Sdes
65238104Sdes/* Define to 1 if you have the `fork' function. */
66238104Sdes#undef HAVE_FORK
67238104Sdes
68238104Sdes/* Whether getaddrinfo is available */
69238104Sdes#undef HAVE_GETADDRINFO
70238104Sdes
71238104Sdes/* Define to 1 if you have the <getopt.h> header file. */
72238104Sdes#undef HAVE_GETOPT_H
73238104Sdes
74238104Sdes/* Define to 1 if you have the `gmtime_r' function. */
75238104Sdes#undef HAVE_GMTIME_R
76238104Sdes
77238104Sdes/* If you have HMAC_CTX_init */
78238104Sdes#undef HAVE_HMAC_CTX_INIT
79238104Sdes
80238104Sdes/* Define to 1 if you have the `inet_aton' function. */
81238104Sdes#undef HAVE_INET_ATON
82238104Sdes
83238104Sdes/* Define to 1 if you have the `inet_ntop' function. */
84238104Sdes#undef HAVE_INET_NTOP
85238104Sdes
86238104Sdes/* Define to 1 if you have the `inet_pton' function. */
87238104Sdes#undef HAVE_INET_PTON
88238104Sdes
89238104Sdes/* define if you have inttypes.h */
90238104Sdes#undef HAVE_INTTYPES_H
91238104Sdes
92238104Sdes/* if the function 'ioctlsocket' is available */
93238104Sdes#undef HAVE_IOCTLSOCKET
94238104Sdes
95238104Sdes/* Define to 1 if you have the `isascii' function. */
96238104Sdes#undef HAVE_ISASCII
97238104Sdes
98238104Sdes/* Define to 1 if you have the `isblank' function. */
99238104Sdes#undef HAVE_ISBLANK
100238104Sdes
101238104Sdes/* Define to 1 if you have the `pcap' library (-lpcap). */
102238104Sdes#undef HAVE_LIBPCAP
103238104Sdes
104238104Sdes/* Define to 1 if you have the `localtime_r' function. */
105238104Sdes#undef HAVE_LOCALTIME_R
106238104Sdes
107238104Sdes/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
108238104Sdes   to 0 otherwise. */
109238104Sdes#undef HAVE_MALLOC
110238104Sdes
111238104Sdes/* Define to 1 if you have the `memmove' function. */
112238104Sdes#undef HAVE_MEMMOVE
113238104Sdes
114238104Sdes/* Define to 1 if you have the <memory.h> header file. */
115238104Sdes#undef HAVE_MEMORY_H
116238104Sdes
117238104Sdes/* Define to 1 if you have the `memset' function. */
118238104Sdes#undef HAVE_MEMSET
119238104Sdes
120238104Sdes/* Define to 1 if you have the <netdb.h> header file. */
121238104Sdes#undef HAVE_NETDB_H
122238104Sdes
123238104Sdes/* Define to 1 if you have the <netinet/if_ether.h> header file. */
124238104Sdes#undef HAVE_NETINET_IF_ETHER_H
125238104Sdes
126238104Sdes/* Define to 1 if you have the <netinet/igmp.h> header file. */
127238104Sdes#undef HAVE_NETINET_IGMP_H
128238104Sdes
129238104Sdes/* Define to 1 if you have the <netinet/in.h> header file. */
130238104Sdes#undef HAVE_NETINET_IN_H
131238104Sdes
132238104Sdes/* Define to 1 if you have the <netinet/in_systm.h> header file. */
133238104Sdes#undef HAVE_NETINET_IN_SYSTM_H
134238104Sdes
135238104Sdes/* Define to 1 if you have the <netinet/ip6.h> header file. */
136238104Sdes#undef HAVE_NETINET_IP6_H
137238104Sdes
138238104Sdes/* Define to 1 if you have the <netinet/ip_compat.h> header file. */
139238104Sdes#undef HAVE_NETINET_IP_COMPAT_H
140238104Sdes
141238104Sdes/* Define to 1 if you have the <netinet/ip.h> header file. */
142238104Sdes#undef HAVE_NETINET_IP_H
143238104Sdes
144238104Sdes/* Define to 1 if you have the <netinet/udp.h> header file. */
145238104Sdes#undef HAVE_NETINET_UDP_H
146238104Sdes
147238104Sdes/* Define to 1 if you have the <net/ethernet.h> header file. */
148238104Sdes#undef HAVE_NET_ETHERNET_H
149238104Sdes
150238104Sdes/* Define to 1 if you have the <net/if.h> header file. */
151238104Sdes#undef HAVE_NET_IF_H
152238104Sdes
153238104Sdes/* Define to 1 if you have the <openssl/err.h> header file. */
154238104Sdes#undef HAVE_OPENSSL_ERR_H
155238104Sdes
156238104Sdes/* Define to 1 if you have the <openssl/rand.h> header file. */
157238104Sdes#undef HAVE_OPENSSL_RAND_H
158238104Sdes
159238104Sdes/* Define to 1 if you have the <openssl/ssl.h> header file. */
160238104Sdes#undef HAVE_OPENSSL_SSL_H
161238104Sdes
162238104Sdes/* Define to 1 if you have the <pcap.h> header file. */
163238104Sdes#undef HAVE_PCAP_H
164238104Sdes
165238104Sdes/* If available, contains the Python version number currently in use. */
166238104Sdes#undef HAVE_PYTHON
167238104Sdes
168238104Sdes/* Define to 1 if you have the `random' function. */
169238104Sdes#undef HAVE_RANDOM
170238104Sdes
171238104Sdes/* Define to 1 if your system has a GNU libc compatible `realloc' function,
172238104Sdes   and to 0 otherwise. */
173238104Sdes#undef HAVE_REALLOC
174238104Sdes
175238104Sdes/* Define to 1 if you have the `sleep' function. */
176238104Sdes#undef HAVE_SLEEP
177238104Sdes
178238104Sdes/* Define to 1 if you have the `snprintf' function. */
179238104Sdes#undef HAVE_SNPRINTF
180238104Sdes
181238104Sdes/* Define if you have the SSL libraries installed. */
182238104Sdes#undef HAVE_SSL
183238104Sdes
184238104Sdes/* Define to 1 if you have the <stdarg.h> header file. */
185238104Sdes#undef HAVE_STDARG_H
186238104Sdes
187238104Sdes/* Define to 1 if stdbool.h conforms to C99. */
188238104Sdes#undef HAVE_STDBOOL_H
189238104Sdes
190238104Sdes/* Define to 1 if you have the <stdint.h> header file. */
191238104Sdes#undef HAVE_STDINT_H
192238104Sdes
193238104Sdes/* Define to 1 if you have the <stdlib.h> header file. */
194238104Sdes#undef HAVE_STDLIB_H
195238104Sdes
196238104Sdes/* Define to 1 if you have the <strings.h> header file. */
197238104Sdes#undef HAVE_STRINGS_H
198238104Sdes
199238104Sdes/* Define to 1 if you have the <string.h> header file. */
200238104Sdes#undef HAVE_STRING_H
201238104Sdes
202238104Sdes/* Define to 1 if you have the `strlcpy' function. */
203238104Sdes#undef HAVE_STRLCPY
204238104Sdes
205238104Sdes/* Define to 1 if you have the `strtoul' function. */
206238104Sdes#undef HAVE_STRTOUL
207238104Sdes
208238104Sdes/* Define if you have SWIG libraries and header files. */
209238104Sdes#undef HAVE_SWIG
210238104Sdes
211238104Sdes/* Define to 1 if you have the <sys/mount.h> header file. */
212238104Sdes#undef HAVE_SYS_MOUNT_H
213238104Sdes
214238104Sdes/* Define to 1 if you have the <sys/param.h> header file. */
215238104Sdes#undef HAVE_SYS_PARAM_H
216238104Sdes
217238104Sdes/* define if you have sys/socket.h */
218238104Sdes#undef HAVE_SYS_SOCKET_H
219238104Sdes
220238104Sdes/* Define to 1 if you have the <sys/stat.h> header file. */
221238104Sdes#undef HAVE_SYS_STAT_H
222238104Sdes
223238104Sdes/* define if you have sys/types.h */
224238104Sdes#undef HAVE_SYS_TYPES_H
225238104Sdes
226238104Sdes/* Define to 1 if you have the `timegm' function. */
227238104Sdes#undef HAVE_TIMEGM
228238104Sdes
229238104Sdes/* Define to 1 if you have the <time.h> header file. */
230238104Sdes#undef HAVE_TIME_H
231238104Sdes
232238104Sdes/* define if you have unistd.h */
233238104Sdes#undef HAVE_UNISTD_H
234238104Sdes
235238104Sdes/* Define to 1 if you have the `vfork' function. */
236238104Sdes#undef HAVE_VFORK
237238104Sdes
238238104Sdes/* Define to 1 if you have the <vfork.h> header file. */
239238104Sdes#undef HAVE_VFORK_H
240238104Sdes
241238104Sdes/* Define to 1 if you have the <winsock2.h> header file. */
242238104Sdes#undef HAVE_WINSOCK2_H
243238104Sdes
244238104Sdes/* Define to 1 if `fork' works. */
245238104Sdes#undef HAVE_WORKING_FORK
246238104Sdes
247238104Sdes/* Define to 1 if `vfork' works. */
248238104Sdes#undef HAVE_WORKING_VFORK
249238104Sdes
250238104Sdes/* Define to 1 if you have the <ws2tcpip.h> header file. */
251238104Sdes#undef HAVE_WS2TCPIP_H
252238104Sdes
253238104Sdes/* Define to 1 if the system has the type `_Bool'. */
254238104Sdes#undef HAVE__BOOL
255238104Sdes
256246854Sdes/* Is a CAFILE given at configure time */
257246854Sdes#undef LDNS_DANE_CA_FILE
258246854Sdes
259246854Sdes/* Is a CAPATH given at configure time */
260246854Sdes#undef LDNS_DANE_CA_PATH
261246854Sdes
262246854Sdes/* Default trust anchor file */
263246854Sdes#undef LDNS_TRUST_ANCHOR_FILE
264246854Sdes
265238104Sdes/* Define to the sub-directory in which libtool stores uninstalled libraries.
266238104Sdes   */
267238104Sdes#undef LT_OBJDIR
268238104Sdes
269238104Sdes/* Define to the address where bug reports for this package should be sent. */
270238104Sdes#undef PACKAGE_BUGREPORT
271238104Sdes
272238104Sdes/* Define to the full name of this package. */
273238104Sdes#undef PACKAGE_NAME
274238104Sdes
275238104Sdes/* Define to the full name and version of this package. */
276238104Sdes#undef PACKAGE_STRING
277238104Sdes
278238104Sdes/* Define to the one symbol short name of this package. */
279238104Sdes#undef PACKAGE_TARNAME
280238104Sdes
281238104Sdes/* Define to the home page for this package. */
282238104Sdes#undef PACKAGE_URL
283238104Sdes
284238104Sdes/* Define to the version of this package. */
285238104Sdes#undef PACKAGE_VERSION
286238104Sdes
287269257Sdes/* Define this to enable RR type CDS. */
288269257Sdes#undef RRTYPE_CDS
289269257Sdes
290269257Sdes/* Define this to enable RR type NINFO. */
291269257Sdes#undef RRTYPE_NINFO
292269257Sdes
293269257Sdes/* Define this to enable RR type RKEY. */
294269257Sdes#undef RRTYPE_RKEY
295269257Sdes
296269257Sdes/* Define this to enable RR type TA. */
297269257Sdes#undef RRTYPE_TA
298269257Sdes
299269257Sdes/* Define this to enable RR type URI. */
300269257Sdes#undef RRTYPE_URI
301269257Sdes
302238104Sdes/* The size of `time_t', as computed by sizeof. */
303238104Sdes#undef SIZEOF_TIME_T
304238104Sdes
305238104Sdes/* Define to 1 if you have the ANSI C header files. */
306238104Sdes#undef STDC_HEADERS
307238104Sdes
308269257Sdes/* Define this to enable messages to stderr. */
309269257Sdes#undef STDERR_MSGS
310269257Sdes
311238104Sdes/* System configuration dir */
312238104Sdes#undef SYSCONFDIR
313238104Sdes
314269257Sdes/* Define this to enable DANE support. */
315269257Sdes#undef USE_DANE
316269257Sdes
317238104Sdes/* Define this to enable ECDSA support. */
318238104Sdes#undef USE_ECDSA
319238104Sdes
320238104Sdes/* Define this to enable GOST support. */
321238104Sdes#undef USE_GOST
322238104Sdes
323238104Sdes/* Define this to enable SHA256 and SHA512 support. */
324238104Sdes#undef USE_SHA2
325238104Sdes
326238104Sdes/* Enable extensions on AIX 3, Interix.  */
327238104Sdes#ifndef _ALL_SOURCE
328238104Sdes# undef _ALL_SOURCE
329238104Sdes#endif
330238104Sdes/* Enable GNU extensions on systems that have them.  */
331238104Sdes#ifndef _GNU_SOURCE
332238104Sdes# undef _GNU_SOURCE
333238104Sdes#endif
334238104Sdes/* Enable threading extensions on Solaris.  */
335238104Sdes#ifndef _POSIX_PTHREAD_SEMANTICS
336238104Sdes# undef _POSIX_PTHREAD_SEMANTICS
337238104Sdes#endif
338238104Sdes/* Enable extensions on HP NonStop.  */
339238104Sdes#ifndef _TANDEM_SOURCE
340238104Sdes# undef _TANDEM_SOURCE
341238104Sdes#endif
342238104Sdes/* Enable general extensions on Solaris.  */
343238104Sdes#ifndef __EXTENSIONS__
344238104Sdes# undef __EXTENSIONS__
345238104Sdes#endif
346238104Sdes
347238104Sdes
348238104Sdes/* Whether the windows socket API is used */
349238104Sdes#undef USE_WINSOCK
350238104Sdes
351238104Sdes/* the version of the windows API enabled */
352238104Sdes#undef WINVER
353238104Sdes
354238104Sdes/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
355238104Sdes   significant byte first (like Motorola and SPARC, unlike Intel). */
356238104Sdes#if defined AC_APPLE_UNIVERSAL_BUILD
357238104Sdes# if defined __BIG_ENDIAN__
358238104Sdes#  define WORDS_BIGENDIAN 1
359238104Sdes# endif
360238104Sdes#else
361238104Sdes# ifndef WORDS_BIGENDIAN
362238104Sdes#  undef WORDS_BIGENDIAN
363238104Sdes# endif
364238104Sdes#endif
365238104Sdes
366238104Sdes/* Define to 1 if on MINIX. */
367238104Sdes#undef _MINIX
368238104Sdes
369238104Sdes/* Define to 2 if the system does not provide POSIX.1 features except with
370238104Sdes   this defined. */
371238104Sdes#undef _POSIX_1_SOURCE
372238104Sdes
373238104Sdes/* Define to 1 if you need to in order for `stat' and other things to work. */
374238104Sdes#undef _POSIX_SOURCE
375238104Sdes
376238104Sdes/* Define to empty if `const' does not conform to ANSI C. */
377238104Sdes#undef const
378238104Sdes
379238104Sdes/* in_addr_t */
380238104Sdes#undef in_addr_t
381238104Sdes
382238104Sdes/* in_port_t */
383238104Sdes#undef in_port_t
384238104Sdes
385238104Sdes/* Define to `__inline__' or `__inline' if that's what the C compiler
386238104Sdes   calls it, or to nothing if 'inline' is not supported under any name.  */
387238104Sdes#ifndef __cplusplus
388238104Sdes#undef inline
389238104Sdes#endif
390238104Sdes
391238104Sdes/* Define to `short' if <sys/types.h> does not define. */
392238104Sdes#undef int16_t
393238104Sdes
394238104Sdes/* Define to `int' if <sys/types.h> does not define. */
395238104Sdes#undef int32_t
396238104Sdes
397238104Sdes/* Define to `long long' if <sys/types.h> does not define. */
398238104Sdes#undef int64_t
399238104Sdes
400238104Sdes/* Define to `char' if <sys/types.h> does not define. */
401238104Sdes#undef int8_t
402238104Sdes
403269257Sdes/* Define to `size_t' if <sys/types.h> does not define. */
404238104Sdes#undef intptr_t
405238104Sdes
406238104Sdes/* Define to rpl_malloc if the replacement function should be used. */
407238104Sdes#undef malloc
408238104Sdes
409238104Sdes/* Define to `int' if <sys/types.h> does not define. */
410238104Sdes#undef pid_t
411238104Sdes
412238104Sdes/* Define to rpl_realloc if the replacement function should be used. */
413238104Sdes#undef realloc
414238104Sdes
415238104Sdes/* Define to `unsigned int' if <sys/types.h> does not define. */
416238104Sdes#undef size_t
417238104Sdes
418238104Sdes/* Define to 'int' if not defined */
419238104Sdes#undef socklen_t
420238104Sdes
421238104Sdes/* Fallback member name for socket family in struct sockaddr_storage */
422238104Sdes#undef ss_family
423238104Sdes
424238104Sdes/* Define to `int' if <sys/types.h> does not define. */
425238104Sdes#undef ssize_t
426238104Sdes
427238104Sdes/* Define to `unsigned short' if <sys/types.h> does not define. */
428238104Sdes#undef uint16_t
429238104Sdes
430238104Sdes/* Define to `unsigned int' if <sys/types.h> does not define. */
431238104Sdes#undef uint32_t
432238104Sdes
433238104Sdes/* Define to `unsigned long long' if <sys/types.h> does not define. */
434238104Sdes#undef uint64_t
435238104Sdes
436238104Sdes/* Define to `unsigned char' if <sys/types.h> does not define. */
437238104Sdes#undef uint8_t
438238104Sdes
439238104Sdes/* Define as `fork' if `vfork' does not work. */
440238104Sdes#undef vfork
441238104Sdes
442238104Sdes
443238104Sdes#include <stdio.h>
444238104Sdes#include <string.h>
445238104Sdes#include <unistd.h>
446238104Sdes#include <assert.h>
447238104Sdes
448238104Sdes#ifndef LITTLE_ENDIAN
449238104Sdes#define LITTLE_ENDIAN 1234
450238104Sdes#endif
451238104Sdes
452238104Sdes#ifndef BIG_ENDIAN
453238104Sdes#define BIG_ENDIAN 4321
454238104Sdes#endif
455238104Sdes
456238104Sdes#ifndef BYTE_ORDER
457238104Sdes#ifdef WORDS_BIGENDIAN
458238104Sdes#define BYTE_ORDER BIG_ENDIAN
459238104Sdes#else
460238104Sdes#define BYTE_ORDER LITTLE_ENDIAN
461238104Sdes#endif /* WORDS_BIGENDIAN */
462238104Sdes#endif /* BYTE_ORDER */
463238104Sdes
464238104Sdes#if STDC_HEADERS
465238104Sdes#include <stdlib.h>
466238104Sdes#include <stddef.h>
467238104Sdes#endif
468238104Sdes
469238104Sdes#ifdef HAVE_STDINT_H
470238104Sdes#include <stdint.h>
471238104Sdes#endif
472238104Sdes
473238104Sdes#ifdef HAVE_SYS_SOCKET_H
474238104Sdes#include <sys/socket.h>
475238104Sdes#endif
476238104Sdes
477238104Sdes#ifdef HAVE_NETINET_IN_H
478238104Sdes#include <netinet/in.h>
479238104Sdes#endif
480238104Sdes
481238104Sdes#ifdef HAVE_ARPA_INET_H
482238104Sdes#include <arpa/inet.h>
483238104Sdes#endif
484238104Sdes
485238104Sdes#ifdef HAVE_WINSOCK2_H
486238104Sdes#include <winsock2.h>
487238104Sdes#endif
488238104Sdes
489238104Sdes#ifdef HAVE_WS2TCPIP_H
490238104Sdes#include <ws2tcpip.h>
491238104Sdes#endif
492238104Sdes
493238104Sdes
494238104Sdes/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
495238104Sdes#ifdef HAVE_WINSOCK2_H
496238104Sdes#define FD_SET_T (u_int)
497238104Sdes#else
498238104Sdes#define FD_SET_T 
499238104Sdes#endif
500238104Sdes
501238104Sdes
502238104Sdes
503238104Sdes
504238104Sdes#ifdef __cplusplus
505238104Sdesextern "C" {
506238104Sdes#endif
507238104Sdes
508238104Sdesint ldns_b64_ntop(uint8_t const *src, size_t srclength,
509238104Sdes	 	  char *target, size_t targsize);
510238104Sdes/**
511238104Sdes * calculates the size needed to store the result of b64_ntop
512238104Sdes */
513238104Sdes/*@unused@*/
514238104Sdesstatic inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
515238104Sdes{
516238104Sdes	return ((((srcsize + 2) / 3) * 4) + 1);
517238104Sdes}
518238104Sdesint ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
519238104Sdes/**
520238104Sdes * calculates the size needed to store the result of ldns_b64_pton
521238104Sdes */
522238104Sdes/*@unused@*/
523238104Sdesstatic inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
524238104Sdes{
525238104Sdes	return (((((srcsize + 3) / 4) * 3)) + 1);
526238104Sdes}
527238104Sdes
528269257Sdes/**
529269257Sdes * Given in dnssec_zone.c, also used in dnssec_sign.c:w
530269257Sdes
531269257Sdes */
532269257Sdesint ldns_dname_compare_v(const void *a, const void *b);
533269257Sdes
534238104Sdes#ifndef HAVE_SLEEP
535238104Sdes/* use windows sleep, in millisecs, instead */
536238104Sdes#define sleep(x) Sleep((x)*1000)
537238104Sdes#endif
538238104Sdes
539238104Sdes#ifndef HAVE_RANDOM
540238104Sdes#define srandom(x) srand(x)
541238104Sdes#define random(x) rand(x)
542238104Sdes#endif
543238104Sdes
544238104Sdes#ifndef HAVE_TIMEGM
545238104Sdes#include <time.h>
546238104Sdestime_t timegm (struct tm *tm);
547238104Sdes#endif /* !TIMEGM */
548238104Sdes#ifndef HAVE_GMTIME_R
549238104Sdesstruct tm *gmtime_r(const time_t *timep, struct tm *result);
550238104Sdes#endif
551238104Sdes#ifndef HAVE_LOCALTIME_R
552238104Sdesstruct tm *localtime_r(const time_t *timep, struct tm *result);
553238104Sdes#endif
554238104Sdes#ifndef HAVE_ISBLANK
555238104Sdesint isblank(int c);
556238104Sdes#endif /* !HAVE_ISBLANK */
557238104Sdes#ifndef HAVE_ISASCII
558238104Sdesint isascii(int c);
559238104Sdes#endif /* !HAVE_ISASCII */
560238104Sdes#ifndef HAVE_SNPRINTF
561238104Sdes#include <stdarg.h>
562238104Sdesint snprintf (char *str, size_t count, const char *fmt, ...);
563238104Sdesint vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
564238104Sdes#endif /* HAVE_SNPRINTF */
565238104Sdes#ifndef HAVE_INET_PTON
566238104Sdesint inet_pton(int af, const char* src, void* dst);
567238104Sdes#endif /* HAVE_INET_PTON */
568238104Sdes#ifndef HAVE_INET_NTOP
569238104Sdesconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
570238104Sdes#endif
571238104Sdes#ifndef HAVE_INET_ATON
572238104Sdesint inet_aton(const char *cp, struct in_addr *addr);
573238104Sdes#endif
574238104Sdes#ifndef HAVE_MEMMOVE
575238104Sdesvoid *memmove(void *dest, const void *src, size_t n);
576238104Sdes#endif
577238104Sdes#ifndef HAVE_STRLCPY
578238104Sdessize_t strlcpy(char *dst, const char *src, size_t siz);
579238104Sdes#endif
580238104Sdes#ifdef __cplusplus
581238104Sdes}
582238104Sdes#endif
583238104Sdes#ifndef HAVE_GETADDRINFO
584238104Sdes#include "compat/fake-rfc2553.h"
585238104Sdes#endif
586238104Sdes#ifndef HAVE_STRTOUL
587238104Sdes#define strtoul (unsigned long)strtol
588238104Sdes#endif
589238104Sdes
590