diff --git a/lib/async_dns.c b/lib/async_dns.c index 86624dd4..1eef6bce 100644 --- a/lib/async_dns.c +++ b/lib/async_dns.c @@ -92,7 +92,7 @@ int adns_system_servers(struct sockaddr_in* out, int max) { int n = 0; IP_ADDR_STRING* p = &fi->DnsServerList; while (p && n < max) { - const char* s = p->IpAddress; + const char* s = p->IpAddress.String; while (*s && n < max) { while (*s == ' ' || *s == ',') s++; char tok[64]; diff --git a/lib/dns.c b/lib/dns.c index 9130a2aa..f22e0d58 100644 --- a/lib/dns.c +++ b/lib/dns.c @@ -40,11 +40,7 @@ #include /* INT_MAX */ #include /* offsetof() */ -#ifdef _WIN32 -#define uint32_t unsigned int -#else #include /* uint32_t */ -#endif #include /* malloc(3) realloc(3) free(3) rand(3) random(3) arc4random(3) */ #include /* FILE fopen(3) fclose(3) getc(3) rewind(3) */ #include /* memcpy(3) strlen(3) memmove(3) memchr(3) memcmp(3) strchr(3) strsep(3) strcspn(3) */