* configure.in: Check for gethostbyname_r, gethostbyaddr_r, getservbyname_r and
getservbyport_r. Figure out the return type of gethostbyname_r.
* fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR): New macros.
(fai_add_hosts_by_name, fake_getnameinfo, getaddrinfo): Use them.
(fake_getaddrinfo): Use getservbyname_r if available.
(fake_getnameinfo): Never call inet_ntoa; in open-coded form, initialize local
pointer variable after label. Use getservbyport_r if available.
(gaiptr, faiptr, gniptr): Pointer variables are now const.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14388
dc483132-0cff-0310-8789-
dd5450dbe970