summaryrefslogtreecommitdiff
path: root/lib/tsocket/tsocket_bsd.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-04-16 07:51:01 +0200
committerStefan Metzmacher <metze@samba.org>2009-04-16 09:31:14 +0200
commit56aae35a234f19eda9702ce321b92fa382a1ada6 (patch)
tree998f67f2ee614e57f17b16bf5c8c025202de594c /lib/tsocket/tsocket_bsd.c
parent14304fc5e5d1334328d0f181cbdd4d3a644af62b (diff)
downloadsamba-56aae35a234f19eda9702ce321b92fa382a1ada6.tar.gz
tsocket: fix the build without ipv6 support
metze
Diffstat (limited to 'lib/tsocket/tsocket_bsd.c')
-rw-r--r--lib/tsocket/tsocket_bsd.c2
1 files changed, 2 insertions, 0 deletions
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;