mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
ce655fdac8
this bug was fixed shortly before 2.14 release, so we checked for that. however some distros decided to backport this fix to earlier versions, breaking our compiletime check. http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e4ecafe004b3d4270b3a9dace8f970047400ed38 the portable solution is to stick the function into a separate comilation unit that does not see the glibc prototype. closes #7
14 lines
439 B
C
14 lines
439 B
C
#include <sys/socket.h>
|
|
|
|
extern int pc_getnameinfo(const void *sa, socklen_t salen,
|
|
char *host, socklen_t hostlen, char *serv,
|
|
socklen_t servlen, int flags);
|
|
|
|
|
|
int getnameinfo(const void *sa, socklen_t salen,
|
|
char *host, socklen_t hostlen, char *serv,
|
|
socklen_t servlen, int flags) {
|
|
return pc_getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
|
|
}
|
|
|