1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

libreplace: ifdef out ip6 code if unsupported.

Michael
(cherry picked from commit 54cc0df4db)
(This used to be commit 1ff0b616a9)
This commit is contained in:
Michael Adam 2008-02-29 02:43:24 +01:00
parent 5827e84d88
commit a73f4bc27f

View File

@ -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;
}