pppd: Fix compilation on Linux when IPV6 is disabled (#360)
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 5 Aug 2022 04:06:33 +0000 (14:06 +1000)
committerGitHub <noreply@github.com>
Fri, 5 Aug 2022 04:06:33 +0000 (14:06 +1000)
commit33e8c95bf873cdce5ff2e2b4d8a76bdae792c699
treef6cc2a5128f8e9960afec6189c34a564c2bd8166
parenta75fb7b198eed50d769c80c36629f38346882cbf
pppd: Fix compilation on Linux when IPV6 is disabled (#360)

This rearranges the PPP_WITH_IPV6CP guards added in commit
80b8744eb42c ("Changing INET6 to PPP_WITH_IPV6CP and adding configure
option", 2021-08-06) so that we (a) always include the rtnetlink
headers, since we need them for get_ppp_stats_rtnetlink(), and (b)
don't include eui64.h unless we have IPV6 support.

Fixes: 80b8744eb42c ("Changing INET6 to PPP_WITH_IPV6CP and adding configure option")
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/sys-linux.c