sa: sa_print_addr(): fix building without HAVE_INET6
This commit is contained in:
parent
9a2db7d430
commit
0ef9de3ab2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ int sa_print_addr(struct re_printf *pf, const struct sa *sa)
|
|||
|
||||
err = re_hprintf(pf, "%j", sa);
|
||||
|
||||
#ifdef HAVE_GETIFADDRS
|
||||
#if defined (HAVE_GETIFADDRS) && defined (HAVE_INET6)
|
||||
if (sa_af(sa) == AF_INET6 && sa_is_linklocal(sa)) {
|
||||
|
||||
char ifname[IF_NAMESIZE];
|
||||
|
|
Loading…
Add table
Reference in a new issue