From f2f076a92a1954d852651543e036cd4bad830b57 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 6 Sep 2004 23:54:54 +0000 Subject: [PATCH] Build with -DNOINET6... --- usr.sbin/ppp/ip.c | 7 ++++++- usr.sbin/ppp/ncp.c | 16 ++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 7a84e099959e..5cd2272ff830 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -206,7 +206,12 @@ prototxt(int cproto) * One (and only one) of pip or pip6 must be set. */ int -FilterCheck(const unsigned char *packet, u_int32_t family, +FilterCheck(const unsigned char *packet, +#ifdef NOINET6 + u_int32_t family __unused, +#else + u_int32_t family, +#endif const struct filter *filter, unsigned *psecs) { int gotinfo; /* true if IP payload decoded */ diff --git a/usr.sbin/ppp/ncp.c b/usr.sbin/ppp/ncp.c index 79a300025c42..202f1c342e12 100644 --- a/usr.sbin/ppp/ncp.c +++ b/usr.sbin/ppp/ncp.c @@ -139,7 +139,13 @@ ncp_Destroy(struct ncp *ncp) } int -ncp_fsmStart(struct ncp *ncp, struct bundle *bundle) +ncp_fsmStart(struct ncp *ncp, +#ifdef NOINET6 + struct bundle *bundle __unused +#else + struct bundle *bundle +#endif + ) { int res = 0; @@ -326,7 +332,13 @@ ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) * of what is to be pushed next, coming either from mp->out or ncp->afq. */ int -ncp_PushPacket(struct ncp *ncp __unused, int *af, struct link *l) +ncp_PushPacket(struct ncp *ncp __unused, +#ifdef NOINET6 + int *af __unused, +#else + int *af, +#endif + struct link *l) { struct bundle *bundle = l->lcp.fsm.bundle; int res;