diff options
author | peter <peter@FreeBSD.org> | 1997-08-19 17:05:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-08-19 17:05:26 +0000 |
commit | 3825bb86c6dc2f3c3e7253dc5f63ab3280e3828f (patch) | |
tree | 00ff9f9eeffd3d961bb1b0ce8a5f2e6ed01fb706 /sys/net/if_ppp.c | |
parent | 481ffda850036c9f258d474716d4ed0fcb18af89 (diff) | |
download | FreeBSD-src-3825bb86c6dc2f3c3e7253dc5f63ab3280e3828f.zip FreeBSD-src-3825bb86c6dc2f3c3e7253dc5f63ab3280e3828f.tar.gz |
Use two NetBSD-style options (PPP_DEFLATE and PPP_BSDCOMP) to control
whether or not to compile the two ppp compression methods.
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index c400f9c..179dc3a 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -69,15 +69,17 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: if_ppp.c,v 1.41 1997/05/31 10:13:45 peter Exp $ */ +/* $Id: if_ppp.c,v 1.42 1997/08/19 14:10:45 peter Exp $ */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ /* from NetBSD: if_ppp.c,v 1.15.2.2 1994/07/28 05:17:58 cgd Exp */ #include "ppp.h" #if NPPP > 0 +#include "opt_ppp.h" + #define VJC -#define PPP_COMPRESS +#define PPP_COMPRESS /* XXX option to cut size? */ #include <sys/param.h> #include <sys/systm.h> @@ -180,10 +182,10 @@ extern struct compressor ppp_bsd_compress; extern struct compressor ppp_deflate; static struct compressor *ppp_compressors[8] = { -#if DO_BSD_COMPRESS +#if DO_BSD_COMPRESS && defined(PPP_BSDCOMP) &ppp_bsd_compress, #endif -#if DO_DEFLATE +#if DO_DEFLATE && defined(PPP_DEFLATE) &ppp_deflate, #endif NULL |