mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2025-01-04 00:15:43 +00:00
exact fix for the wrong getnameinfo prototype in GLIBC < 2.14
This commit is contained in:
parent
218d242aab
commit
4d517cdfb0
@ -406,8 +406,9 @@ void freeaddrinfo(struct addrinfo *res)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// work around a buggy prototype in GLIBC. according to the bugtracker it has been fixed in git at 02 May 2011.
|
||||||
#ifdef __GLIBC__
|
// 2.14 came out in June 2011 so that should be the first fixed version
|
||||||
|
#if defined(__GLIBC__) && (__GLIBC__ < 3) && (__GLIBC_MINOR__ < 14)
|
||||||
int getnameinfo (const struct sockaddr * sa,
|
int getnameinfo (const struct sockaddr * sa,
|
||||||
socklen_t salen, char * host,
|
socklen_t salen, char * host,
|
||||||
socklen_t hostlen, char * serv,
|
socklen_t hostlen, char * serv,
|
||||||
|
Loading…
Reference in New Issue
Block a user