From e3076c4caa388c94ab3972dd157698bbe4e57d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 15 Apr 2020 13:50:39 +0200 Subject: [PATCH] Align the irs_getnameinfo() declaration and definition on Windows --- lib/irs/getnameinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/irs/getnameinfo.c b/lib/irs/getnameinfo.c index a102db5443..2a8363fe0e 100644 --- a/lib/irs/getnameinfo.c +++ b/lib/irs/getnameinfo.c @@ -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;