Date: Wed, 30 Mar 2022 17:51:08 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 1c487a5d3dac - stable/13 - Fix kernel build without INET and INET6 Message-ID: <202203301751.22UHp8K1094010@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=1c487a5d3daccb8489c710d8cfabaa83fde1ca58 commit 1c487a5d3daccb8489c710d8cfabaa83fde1ca58 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-01-02 00:53:42 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-03-30 17:50:42 +0000 Fix kernel build without INET and INET6 Reviewed by: brooks, melifaro Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33718 (cherry picked from commit a6668e31aa3cc855bfb37d6edc05122514592a47) --- sys/net/if_llatbl.c | 2 ++ sys/net/route/nhop_ctl.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index c61a19f39de2..73e20eecf378 100644 --- a/sys/net/if_llatbl.c +++ b/sys/net/if_llatbl.c @@ -443,7 +443,9 @@ char * llentry_print_buf(const struct llentry *lle, struct ifnet *ifp, int family, char *buf, size_t bufsize) { +#if defined(INET) || defined(INET6) char abuf[INET6_ADDRSTRLEN]; +#endif const char *valid = (lle->r_flags & RLLE_VALID) ? "valid" : "no_l2"; const char *upper_str = rib_print_family(llentry_get_upper_family(lle, family)); diff --git a/sys/net/route/nhop_ctl.c b/sys/net/route/nhop_ctl.c index 233a2a677678..16b8ca46739a 100644 --- a/sys/net/route/nhop_ctl.c +++ b/sys/net/route/nhop_ctl.c @@ -830,7 +830,9 @@ nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu) char * nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize) { +#if defined(INET) || defined(INET6) char abuf[INET6_ADDRSTRLEN]; +#endif struct nhop_priv *nh_priv = nh->nh_priv; const char *upper_str = rib_print_family(nh->nh_priv->nh_upper_family);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203301751.22UHp8K1094010>