From: Ondřej Surý Date: Wed, 15 Apr 2020 11:50:39 +0000 (+0200) Subject: Align the irs_getnameinfo() declaration and definition on Windows X-Git-Tag: v9.17.2~146^2~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e3076c4caa388c94ab3972dd157698bbe4e57d2e;p=thirdparty%2Fbind9.git Align the irs_getnameinfo() declaration and definition on Windows --- diff --git a/lib/irs/getnameinfo.c b/lib/irs/getnameinfo.c index a102db54434..2a8363fe0ea 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;