Subject: Re: adig.c calls perror()

Re: adig.c calls perror()

From: Tommie Gannert <tommie_at_spotify.com>
Date: Mon, 13 Aug 2012 16:00:27 +0200

2012/8/10 Gisle Vanem <gvanem_at_broadpark.no>:
> adig.c calls perror() when select() fail. This doesn't work on
> Winsock; perror() prints errno string, not WSAGetLastError().
> So I suggest we add a new ares_perror() function to ares_strerror.c:

Makes sense to me.

Quickly and unscientifically searching the web gave me

  http://tangentsoft.net/wskfaq/articles/bsd-compatibility.html

which states the same thing.

-- 
Tommie Gannert
Software engineer, backend infrastructure
Spotify AB
Received on 2012-08-13