X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/3787a64d2fc7b4ac00bd3ea924d7a5b6a6e5ca3d..e41dfc2c8396ec60ec237e2c5cdf11b9dbb856ac:/evdns.c?ds=inline diff --git a/evdns.c b/evdns.c index fa81f38..e24aacc 100644 --- a/evdns.c +++ b/evdns.c @@ -1,5 +1,4 @@ -#define DNS_USE_GETTIMEOFDAY_FOR_ID 1 -#define HAVE_STRUCT_IN6_ADDR 1 +/* $Id: evdns.c,v 1.21 2007-11-08 18:38:52 root Exp $ */ /* The original version of this module was written by Adam Langley; for * a history of modifications, check out the subversion logs. @@ -41,8 +40,10 @@ #endif #ifdef WIN32 +#ifndef EV_STANDALONE #include "misc.h" #endif +#endif /* #define NDEBUG */ @@ -2547,7 +2548,7 @@ evdns_resolv_set_defaults(int flags) { #ifndef HAVE_STRTOK_R static char * -fake_strtok_r(char *s, const char *delim, char **state) { +strtok_r(char *s, const char *delim, char **state) { return strtok(s, delim); } #endif @@ -2623,9 +2624,9 @@ static void resolv_conf_parse_line(char *const start, int flags) { char *strtok_state; static const char *const delims = " \t"; -#define NEXT_TOKEN fake_strtok_r(NULL, delims, &strtok_state) +#define NEXT_TOKEN strtok_r(NULL, delims, &strtok_state) - char *const first_token = fake_strtok_r(start, delims, &strtok_state); + char *const first_token = strtok_r(start, delims, &strtok_state); if (!first_token) return; if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) {