File turnpike.patch of Package turnpike
This does exactly what the macro GETNAMEINFO does - but without warnings.
--- VPNClient/vpnlogin/src/utility.c
+++ VPNClient/vpnlogin/src/utility.c
@@ -728,7 +728,11 @@
if (saddr->sa_family == AF_UNSPEC)
snprintf (buf, sizeof(buf), "%s", "anonymous");
else {
- GETNAMEINFO(saddr, addr, port);
+ if (getnameinfo(saddr, 16, addr, sizeof(addr), port, sizeof(port),
+ NIFLAGS) != 0) {
+ strncpy(addr, "(invalid)", sizeof(addr));
+ strncpy(port, "(invalid)", sizeof(port));
+ }
snprintf(buf, sizeof(buf), "%s[%s]", addr, port);
}