Fix bug found when building on an IPv6-only system by Kai Blin.
authorJeremy Allison <jra@samba.org>
Wed, 18 May 2011 22:28:28 +0000 (15:28 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 19 May 2011 00:21:54 +0000 (02:21 +0200)
commit66c3d5d74b25b9b7703c2f48fd02a43f1d2ae9f2
tree19f4d56d8efe9515fb1d7007af96d73a8d74bf54
parent0b0abc1723063b1360557cbd42198708720fa0a4
Fix bug found when building on an IPv6-only system by Kai Blin.

When building on IPv6-only, doing:

hints.ai_family = AF_INET;
getaddrinfo("0.0.0.0", NULL, &hints, &ppres)

fails as AF_INET is unavailable on an IPv6-only system. This
causes us to fallback to our replacement getaddrinfo code
which is IPv4-only.

As we're only trying to detect a specific AIX bug here,
broaden the tests to find that bug, and also test for
working getaddrinfo in an IPv6-only safe way.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu May 19 02:21:54 CEST 2011 on sn-devel-104
lib/replace/libreplace_network.m4