Commit e3076c4c authored by Ondřej Surý's avatar Ondřej Surý

Align the irs_getnameinfo() declaration and definition on Windows

parent b6c2012d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment