1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2026-05-21 21:29:53 +08:00

add configure check for non-POSIX compliant getnameinfo signature

- glibc < 2.14 uses "unsigned" instead of "int" for flags
- openbsd and freebsd use "size_t" instead of socklen_t for servlen
  and nodelen, while still using socklen_t for salen.

closes #430
This commit is contained in:
rofl0r
2022-01-25 14:51:27 +00:00
Unverified
parent 2cc014995e
commit 07c15a02f6
3 changed files with 19 additions and 3 deletions
+2 -2
View File
@@ -729,8 +729,8 @@ HOOKFUNC(void, freeaddrinfo, struct addrinfo *res) {
}
HOOKFUNC(int, getnameinfo, const struct sockaddr *sa, socklen_t salen,
char *host, socklen_t hostlen, char *serv,
socklen_t servlen, int flags)
char *host, GN_NODELEN_T hostlen, char *serv,
GN_SERVLEN_T servlen, GN_FLAGS_T flags)
{
INIT();
PFUNC();