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:
parent
09d981409f
commit
6decc75807
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user