]> arthur.barton.de Git - ngircd.git/commit
Check for working getaddrinfo() function
authorAlexander Barton <alex@barton.de>
Mon, 11 Nov 2013 23:28:50 +0000 (00:28 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 27 Dec 2013 21:02:29 +0000 (22:02 +0100)
commit21ef762109dcb26cb2ccbda56b50472ada697477
tree98ee68b66c242ae5bbb5391baae8c1ac36ff48ef
parente379a0881e0f525d965e7bffaaf2e9858dc49068
Check for working getaddrinfo() function

At least AIX 4.3.3 and 5.1 have a broken implementation of getaddrinfo()
which doesn't handle "0" as numeric service correctly. This patch adds
a configure check for this case and changes all calling functions to only
use getaddrinfo() if it "works".

See <http://www.stacken.kth.se/lists/heimdal-discuss/2004-05/msg00059.html>

(cherry picked from commit b8433e9261c516d7b8743b33681050b6666192e5)

Conflicts:
configure.ng
configure.ng
src/ipaddr/ng_ipaddr.c
src/ngircd/resolve.c