* configure.in: Check for gethostbyname_r, gethostbyaddr_r, getservbyname_r and
authorKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 07:56:36 +0000 (07:56 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 07:56:36 +0000 (07:56 +0000)
commitddf3e92511e504db5c90964db2741dbbe193d88c
tree347b17012225c81d858fd5e12b968121cc0afb4c
parentd378c230edc4c24ff95bea6da9e900f0c14d1b73
* 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
src/include/ChangeLog
src/include/configure.in
src/include/fake-addrinfo.h