From 56aae35a234f19eda9702ce321b92fa382a1ada6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 16 Apr 2009 07:51:01 +0200 Subject: [PATCH] tsocket: fix the build without ipv6 support metze --- lib/tsocket/tsocket_bsd.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.34.1