X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=lib%2Ftsocket%2Ftsocket_bsd.c;h=29097bd987898a681112493e91df89881d5c0160;hp=87586e08e3c672b1a17d3ad6dda24e782c79fa42;hb=56aae35a234f19eda9702ce321b92fa382a1ada6;hpb=14304fc5e5d1334328d0f181cbdd4d3a644af62b diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index 87586e08e3c..29097bd9878 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -523,9 +523,11 @@ static char *tsocket_address_bsd_string(const struct tsocket_address *addr, case AF_INET: prefix = "ipv4"; break; +#ifdef HAVE_IPV6 case AF_INET6: prefix = "ipv6"; break; +#endif default: errno = EINVAL; return NULL;