1 | /* $Id: evdns.c,v 1.6 2007/11/03 19:41:55 root Exp $ */ |
1 | /* $Id: evdns.c,v 1.19 2007/11/06 18:49:32 root Exp $ */ |
2 | |
2 | |
3 | /* The original version of this module was written by Adam Langley; for |
3 | /* The original version of this module was written by Adam Langley; for |
4 | * a history of modifications, check out the subversion logs. |
4 | * a history of modifications, check out the subversion logs. |
5 | * |
5 | * |
6 | * When editing this module, try to keep it re-mergeable by Adam. Don't |
6 | * When editing this module, try to keep it re-mergeable by Adam. Don't |
… | |
… | |
38 | #ifdef HAVE_CONFIG_H |
38 | #ifdef HAVE_CONFIG_H |
39 | #include "config.h" |
39 | #include "config.h" |
40 | #endif |
40 | #endif |
41 | |
41 | |
42 | #ifdef WIN32 |
42 | #ifdef WIN32 |
|
|
43 | #ifndef EV_STANDALONE |
43 | #include "misc.h" |
44 | #include "misc.h" |
|
|
45 | #endif |
44 | #endif |
46 | #endif |
45 | |
47 | |
46 | /* #define NDEBUG */ |
48 | /* #define NDEBUG */ |
47 | |
49 | |
48 | #ifndef DNS_USE_CPU_CLOCK_FOR_ID |
50 | #ifndef DNS_USE_CPU_CLOCK_FOR_ID |
… | |
… | |
92 | #include <ctype.h> |
94 | #include <ctype.h> |
93 | #include <stdio.h> |
95 | #include <stdio.h> |
94 | #include <stdarg.h> |
96 | #include <stdarg.h> |
95 | |
97 | |
96 | #include "evdns.h" |
98 | #include "evdns.h" |
97 | #include "log.h" |
|
|
98 | #ifdef WIN32 |
99 | #ifdef WIN32 |
99 | #include <windows.h> |
100 | #include <windows.h> |
100 | #include <winsock2.h> |
101 | #include <winsock2.h> |
101 | #include <iphlpapi.h> |
102 | #include <iphlpapi.h> |
102 | #else |
103 | #else |