mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
libreplace: ifdef out ip6 code if unsupported.
Michael (cherry picked from commit54cc0df4db
) (This used to be commit1ff0b616a9
)
This commit is contained in:
parent
5827e84d88
commit
a73f4bc27f
@ -39,11 +39,13 @@ static const char *format_sockaddr(struct sockaddr *addr,
|
||||
&((struct sockaddr_in *)addr)->sin_addr,
|
||||
addrstring,
|
||||
addrlen);
|
||||
#ifdef HAVE_STRUCT_SOCKADDR_IN6
|
||||
} else if (addr->sa_family == AF_INET6) {
|
||||
result = rep_inet_ntop(AF_INET6,
|
||||
&((struct sockaddr_in6 *)addr)->sin6_addr,
|
||||
addrstring,
|
||||
addrlen);
|
||||
#endif
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user