mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 03:11:56 -05:00
Align the irs_getnameinfo() declaration and definition on Windows
This commit is contained in:
parent
b6c2012d93
commit
e3076c4caa
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue