Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2011-09-04 20:13:30 +0400
committerrofl0r <retnyg@gmx.net>2011-09-04 20:13:30 +0400
commit4d517cdfb0f9e9a75faa06050fea028f195a5133 (patch)
tree5bfa2c936c8e8af7390886543d36ca7506a28f89
parent218d242aabdd5811a2a304ee7cc38bdd0a82f28d (diff)
exact fix for the wrong getnameinfo prototype in GLIBC < 2.14
-rw-r--r--src/libproxychains.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libproxychains.c b/src/libproxychains.c
index cc505c4..8ce6588 100644
--- a/src/libproxychains.c
+++ b/src/libproxychains.c
@@ -406,8 +406,9 @@ void freeaddrinfo(struct addrinfo *res)
}
return;
}
-
-#ifdef __GLIBC__
+// work around a buggy prototype in GLIBC. according to the bugtracker it has been fixed in git at 02 May 2011.
+// 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,
socklen_t salen, char * host,
socklen_t hostlen, char * serv,