From 3ffe2ef6a8f0ccf68c1656347595e1df81c5bb20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eivind=20N=C3=A6ss?= Date: Fri, 17 Mar 2023 15:52:33 -0700 Subject: [PATCH] Fix compilation without ipv6cp support (#408) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- pppd/main.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.39.2