diff options
| author | Alexander Barton <alex@barton.de> | 2013-11-12 00:28:50 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-12-27 21:35:13 +0100 |
| commit | b8433e9261c516d7b8743b33681050b6666192e5 (patch) | |
| tree | bf12b0234d95c6e68830f1d87fb1ee1029a105ca /src/ipaddr | |
| parent | 5a424f60dad660815d89285da9a7a07e4991461a (diff) | |
| download | ngircd-b8433e9261c516d7b8743b33681050b6666192e5.tar.gz ngircd-b8433e9261c516d7b8743b33681050b6666192e5.zip | |
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>
Diffstat (limited to 'src/ipaddr')
| -rw-r--r-- | src/ipaddr/ng_ipaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipaddr/ng_ipaddr.c b/src/ipaddr/ng_ipaddr.c index 9cf35ec9..37f75b6d 100644 --- a/src/ipaddr/ng_ipaddr.c +++ b/src/ipaddr/ng_ipaddr.c @@ -23,7 +23,7 @@ GLOBAL bool ng_ipaddr_init(ng_ipaddr_t *addr, const char *ip_str, UINT16 port) { -#ifdef HAVE_GETADDRINFO +#ifdef HAVE_WORKING_GETADDRINFO int ret; char portstr[64]; struct addrinfo *res0; |