fix build windows

This commit is contained in:
Jeff Lenk 2010-10-13 10:59:34 -05:00
parent 4e5911c291
commit ffd28c1930
1 changed files with 1 additions and 1 deletions

View File

@ -1515,7 +1515,7 @@ SWITCH_DECLARE(char *) get_addr6(char *buf, switch_size_t len, struct sockaddr_i
if (sa) {
#if defined(NTDDI_VERSION)
switch_inet_ntop6((unsigned char*)sa->sin6_addr, buf, len);
switch_inet_ntop6((unsigned char*)&(sa->sin6_addr), buf, len);
#else
inet_ntop(AF_INET6, &(sa->sin6_addr), buf, len);
#endif