Commit d9e70a9a authored by Michael Jerris's avatar Michael Jerris
Browse files

su_localinfo.c: fix build on non-ipv6 hosts

Ignore-this: d92e0856bf43e51cc98ab7220202c44d

darcs-hash:20090226153151-11237-444131f31977dea76756c78ee0630571905fa962.gz
parent 641396e2
......@@ -96,7 +96,9 @@ static int localinfo6(su_localinfo_t const *, su_localinfo_t **);
#endif
static int li_scope4(uint32_t ip4);
#if SU_HAVE_IN6
static int li_scope6(struct in6_addr const *ip6);
#endif
#if !SU_LOCALINFO_TEST
......@@ -629,7 +631,9 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult)
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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment