summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-18 12:30:41 +0000
committerbrian <brian@FreeBSD.org>2001-08-18 12:30:41 +0000
commit7fdf4b8b81201c3569ba9b1b02163dafa5cd3bb5 (patch)
treec254c19dd2d2ac3f13d90599213ef99c622bc4e9 /usr.sbin/ppp
parent4debb1b901da02a2ff7e5157c5d9332bf88d31cb (diff)
downloadFreeBSD-src-7fdf4b8b81201c3569ba9b1b02163dafa5cd3bb5.zip
FreeBSD-src-7fdf4b8b81201c3569ba9b1b02163dafa5cd3bb5.tar.gz
Build properly with -DNOIPV6
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 6add420..2c79b89 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -2576,10 +2576,12 @@ OptSet(struct cmdargs const *arg)
if (ident_cmd(arg->argv[arg->argn - 2], &keep, &add) == NULL)
return 1;
+#ifndef NOINET6
if (add == NEG_ENABLED && bit == OPT_IPV6CP && !probe.ipv6_available) {
log_Printf(LogWARN, "IPv6 is not available on this machine\n");
return 1;
}
+#endif
if (add)
arg->bundle->cfg.opt |= bit;
OpenPOWER on IntegriCloud