Align the irs_getnameinfo() declaration and definition on Windows

This commit is contained in:
Ondřej Surý 2020-04-15 13:50:39 +02:00
parent b6c2012d93
commit e3076c4caa

View file

@ -137,9 +137,15 @@ static struct afd {
goto cleanup; \
} while (0)
#ifdef _WIN32
int
getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
DWORD hostlen, char *serv, DWORD servlen, int flags) {
#else
int
getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
socklen_t hostlen, char *serv, socklen_t servlen, int flags) {
#endif
struct afd *afd = NULL;
struct servent *sp;
unsigned short port = 0;