[Freeswitch-svn] [commit] r12304 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su
FreeSWITCH SVN
mikej at freeswitch.org
Thu Feb 26 10:38:35 PST 2009
Author: mikej
Date: Thu Feb 26 12:38:34 2009
New Revision: 12304
Log:
Thu Feb 26 09:31:51 CST 2009 Michael Jerris <mike at jerris.com>
* su_localinfo.c: fix build on non-ipv6 hosts
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Thu Feb 26 12:38:34 2009
@@ -1 +1 @@
-Thu Feb 26 12:36:01 CST 2009
+Thu Feb 26 12:38:20 CST 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c Thu Feb 26 12:38:34 2009
@@ -96,8 +96,7 @@
#endif
static int li_scope4(uint32_t ip4);
-
-#ifdef SU_HAVE_IN6
+#if SU_HAVE_IN6
static int li_scope6(struct in6_addr const *ip6);
#endif
@@ -632,6 +631,9 @@
struct ifreq ifreq[1];
int scope, if_index, flags = 0, gni_flags = 0;
char *if_name;
+#if SU_HAVE_IN6
+ su_sockaddr_t su2[1];
+#endif
#if SA_LEN
if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_addr))
@@ -749,7 +751,6 @@
#if SU_HAVE_IN6
if (su_xtra) {
- su_sockaddr_t su2[1];
/* Map IPv4 address to IPv6 address */
memset(su2, 0, sizeof(*su2));
su2->su_family = AF_INET6;
More information about the Freeswitch-svn
mailing list