netlink: fix compilation withous INET6

Fixes:	a77facd273
This commit is contained in:
Gleb Smirnoff 2023-06-02 09:09:55 -07:00
parent dd23557528
commit 7811cca872

View File

@ -1277,9 +1277,7 @@ 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;