In some cases AI_ADDRCONFIG confuses NetBSD 6.0

BUG: 764655
Change-Id: I29198c94c6788f9e01f57e11798f3d3d7cd9c8de
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/4105
Reviewed-by: Anand Avati <avati@redhat.com>
Tested-by: Anand Avati <avati@redhat.com>
This commit is contained in:
Emmanuel Dreyfus 2012-10-18 18:39:34 +02:00 committed by Anand Avati
parent 09d981409f
commit 6decc75807

View File

@ -167,7 +167,9 @@ gf_resolve_ip6 (const char *hostname,
memset(&hints, 0, sizeof(hints));
hints.ai_family = family;
hints.ai_socktype = SOCK_STREAM;
#ifndef __NetBSD__
hints.ai_flags = AI_ADDRCONFIG;
#endif
ret = gf_asprintf (&port_str, "%d", port);
if (-1 == ret) {