From: Eivind Næss Date: Fri, 17 Mar 2023 22:52:33 +0000 (-0700) Subject: Fix compilation without ipv6cp support (#408) X-Git-Tag: ppp-2.5.0~7 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=3ffe2ef6a8f0ccf68c1656347595e1df81c5bb20;p=ppp.git Fix compilation without ipv6cp support (#408) You can't reference variables that aren't included in the compile. Add #ifdef PPP_WITH_IPV6CP in the get_notifier_by_type function. Signed-off-by: Eivind Næss --- diff --git a/pppd/main.c b/pppd/main.c index 932855e..4455199 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -2038,8 +2038,10 @@ struct notifier **get_notifier_by_type(ppp_notify_t type) [NF_SIGNALED ] = &sigreceived, [NF_IP_UP ] = &ip_up_notifier, [NF_IP_DOWN ] = &ip_down_notifier, +#ifdef PPP_WITH_IPV6CP [NF_IPV6_UP ] = &ipv6_up_notifier, [NF_IPV6_DOWN ] = &ipv6_down_notifier, +#endif [NF_AUTH_UP ] = &auth_up_notifier, [NF_LINK_DOWN ] = &link_down_notifier, [NF_FORK ] = &fork_notifier,