#include <ldns/config.h>
#include <sys/types.h>
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <ldns/config.h>
#include <sys/types.h>
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <ldns/config.h>
#include <sys/types.h>
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <ldns/config.h>
#include <sys/types.h>
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <ldns/config.h>
#include <ldns/common.h>
+#ifndef _MSC_VER
#include <unistd.h>
+#endif
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define _FAKE_RFC2553_H
#include <sys/types.h>
+#ifdef _MSC_VER
+#include <winsock2.h>
+#else
#include <sys/socket.h>
#include <netdb.h>
+#endif
#include <limits.h>
#ifdef __cplusplus
--- /dev/null
+#include <ldns/config.h>\r
+\r
+#ifndef HAVE_GETTIMEOFDAY\r
+\r
+#include < time.h >\r
+#include < windows.h>\r
+#include <compat/gettimeofday.h>\r
+\r
+#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)\r
+#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64\r
+#else\r
+#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL\r
+#endif\r
+ \r
+int gettimeofday(struct timeval *tv, struct timezone *tz)\r
+{\r
+ FILETIME ft;\r
+ unsigned __int64 tmpres = 0;\r
+ static int tzflag;\r
+ \r
+ if (NULL != tv)\r
+ {\r
+ GetSystemTimeAsFileTime(&ft);\r
+ \r
+ tmpres |= ft.dwHighDateTime;\r
+ tmpres <<= 32;\r
+ tmpres |= ft.dwLowDateTime;\r
+ \r
+ /*converting file time to unix epoch*/\r
+ tmpres /= 10; /*convert into microseconds*/\r
+ tmpres -= DELTA_EPOCH_IN_MICROSECS;\r
+ tv->tv_sec = (long)(tmpres / 1000000UL);\r
+ tv->tv_usec = (long)(tmpres % 1000000UL);\r
+ }\r
+ \r
+ if (NULL != tz)\r
+ {\r
+ if (!tzflag)\r
+ {\r
+ _tzset();\r
+ tzflag++;\r
+ }\r
+ tz->tz_minuteswest = _timezone / 60;\r
+ tz->tz_dsttime = _daylight;\r
+ }\r
+ \r
+ return 0;\r
+}\r
+\r
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef HAVE_GETTIMEOFDAY\r
+\r
+struct timezone\r
+{\r
+ int tz_minuteswest; /* minutes W of Greenwich */\r
+ int tz_dsttime; /* type of dst correction */\r
+};\r
+ \r
+int gettimeofday(struct timeval *tv, struct timezone *tz);\r
+\r
+#endif
\ No newline at end of file
#if !defined(HAVE_INET_ATON)
#include <sys/types.h>
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifndef HAVE_INET_NTOP
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#include <sys/types.h>
+#ifndef _MSC_VER
void *malloc ();
+#endif
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
#include <ldns/config.h>
#include <stdlib.h>
+#ifndef _MSC_VER
void *memmove(void *dest, const void *src, size_t n);
void *memmove(void *dest, const void *src, size_t n)
memcpy(dest, src, n);
return dest;
}
+#endif
#include <sys/types.h>
+#ifndef _MSC_VER
void *realloc (void*, size_t);
void *malloc (size_t);
+#endif
/* Changes allocation to new sizes, copies over old data.
* if oldptr is NULL, does a malloc.
#include <ldns/ldns.h>
#include <ldns/dnssec.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <time.h>
#ifdef HAVE_SSL
#include <ldns/dnssec.h>
#include <ldns/dnssec_sign.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <time.h>
#ifdef HAVE_SSL
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <time.h>
#ifdef HAVE_SSL
#include <netdb.h>
#endif
#include <time.h>
+#ifndef _MSC_VER
#include <sys/time.h>
+#endif
#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
#include <ldns/error.h>
#include <ldns/common.h>
#include <ldns/rr.h>
+#ifdef _MSC_VER
+#include <time.h>
+#else
#include <sys/time.h>
+#endif
#ifdef __cplusplus
extern "C" {
#include <ldns/tsig.h>
#include <ldns/rdata.h>
#include <ldns/packet.h>
+#ifdef _MSC_VER
+#include <time.h>
+#else
#include <sys/time.h>
+#endif
#ifdef __cplusplus
extern "C" {
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
+#ifdef _MSC_VER
+#include <compat/gettimeofday.h>
+#include <time.h>
+#else
#include <sys/time.h>
+#endif
#include <errno.h>
#include <fcntl.h>
fd_set fds;
#ifndef S_SPLINT_S
FD_ZERO(&fds);
- FD_SET(FD_SET_T sockfd, &fds);
+ FD_SET(sockfd, &fds);
#endif
if(write)
ret = select(sockfd+1, NULL, &fds, NULL, &timeout);
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <limits.h>
#ifdef HAVE_SSL
#include <ldns/ldns.h>
#include <limits.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
ldns_lookup_table ldns_directive_types[] = {
{ LDNS_DIR_TTL, "$TTL" },
#include <ldns/config.h>
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
/* Access function for reading
* and setting the different Resolver
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <limits.h>
#include <errno.h>
#include <ldns/ldns.h>
#include <limits.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
/**
* return a specific rdf
#include <ldns/config.h>
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#ifdef HAVE_SSL
#include <openssl/hmac.h>
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <stdlib.h>
#include <limits.h>
#include <ldns/rdata.h>
#include <ldns/rr.h>
#include <ldns/util.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
+#ifndef _MSC_VER
#include <sys/time.h>
+#else
+#include <compat/gettimeofday.h>
+#endif
#include <time.h>
#ifdef HAVE_SSL
#include <ldns/ldns.h>
/*#include <ldns/wire2host.h>*/
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <limits.h>
#include <ldns/ldns.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
#include <strings.h>
+#endif
#include <limits.h>
ldns_rr *