[svn-commits] simon.perreault: branch group/v6-new r267204 - /team/group/v6-new/channels/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jun 2 15:21:52 CDT 2010
Author: simon.perreault
Date: Wed Jun 2 15:21:50 2010
New Revision: 267204
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=267204
Log:
Do not use non-standard s6_addr32. With this change it now compiles on Mac OS X.
Modified:
team/group/v6-new/channels/chan_sip.c
Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=267204&r1=267203&r2=267204
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Wed Jun 2 15:21:50 2010
@@ -27129,7 +27129,7 @@
ret = ((struct sockaddr_in*)&peer->addr.ss)->sin_addr.s_addr ;
break;
case AF_INET6:
- ret = ((struct sockaddr_in6*)&peer->addr.ss)->sin6_addr.s6_addr32[3];
+ ret = ((uint32_t *)&((struct sockaddr_in6*)&peer->addr.ss)->sin6_addr)[3];
break;
default:
ast_log(LOG_ERROR, "Unknown address type\n");
More information about the svn-commits
mailing list