]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Align the irs_getnameinfo() declaration and definition on Windows
authorOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 11:50:39 +0000 (13:50 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 12:03:40 +0000 (14:03 +0200)
lib/irs/getnameinfo.c

index a102db54434853206c0c410d3ea1d5c202f9d537..2a8363fe0ea09814b03ab1c1a3d850b4d0cd5f8b 100644 (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;