mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
tsocket: fix the build without ipv6 support
metze
This commit is contained in:
parent
14304fc5e5
commit
56aae35a23
@ -523,9 +523,11 @@ static char *tsocket_address_bsd_string(const struct tsocket_address *addr,
|
|||||||
case AF_INET:
|
case AF_INET:
|
||||||
prefix = "ipv4";
|
prefix = "ipv4";
|
||||||
break;
|
break;
|
||||||
|
#ifdef HAVE_IPV6
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
prefix = "ipv6";
|
prefix = "ipv6";
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user