netlink: fix bulding with NOINET6
This commit is contained in:
parent
dfc15e761b
commit
99ea21744b
@ -1257,7 +1257,9 @@ rtnl_handle_addr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
|
||||
attrs.ifa_index);
|
||||
return (ENOENT);
|
||||
}
|
||||
#ifdef INET6
|
||||
int if_flags = if_getflags(ifp);
|
||||
#endif
|
||||
|
||||
#if defined(INET) || defined(INET6)
|
||||
bool new = hdr->nlmsg_type == NL_RTM_NEWADDR;
|
||||
|
Loading…
Reference in New Issue
Block a user