]> git.ozlabs.org Git - ppp.git/commitdiff
Fix compilation without ipv6cp support (#408)
authorEivind Næss <eivnaes@yahoo.com>
Fri, 17 Mar 2023 22:52:33 +0000 (15:52 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2023 22:52:33 +0000 (09:52 +1100)
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 <eivnaes@yahoo.com>
pppd/main.c

index 932855ee31d90e34a825944d1db3f001101d0355..4455199eefea829032b26488d93b20f15b8291fd 100644 (file)
@@ -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,