]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build windows
authorJeff Lenk <jeff@jefflenk.com>
Wed, 13 Oct 2010 15:59:34 +0000 (10:59 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 13 Oct 2010 15:59:34 +0000 (10:59 -0500)
src/switch_utils.c

index aa8f4139d224912fe3b326582630b8c3cfe6c041..ea5bd37051fa9a52fea757607b33e80a27d9eb72 100644 (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