netlink: fix bulding with NOINET6

This commit is contained in:
Alexander V. Chernikov 2023-05-27 10:46:25 +00:00
parent dfc15e761b
commit 99ea21744b

View File

@ -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;