diff options
author | yar <yar@FreeBSD.org> | 2005-10-14 23:17:45 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-10-14 23:17:45 +0000 |
commit | 924e74a7598e3d599ae2d95a728fc373ef8582ed (patch) | |
tree | 97c97f8faaa373219f25974eabbd67597dd0770f /sys/netgraph | |
parent | 0dd10470eca4b50758f1f3fa559697f67bd0a188 (diff) | |
download | FreeBSD-src-924e74a7598e3d599ae2d95a728fc373ef8582ed.zip FreeBSD-src-924e74a7598e3d599ae2d95a728fc373ef8582ed.tar.gz |
In preparation for making the modules actually use opt_*.h files
provided in the kernel build directory, fix modules that were
failing to build this way due to not quite correct kernel option
usage. In particular:
ng_mppc.c uses two complementary options, both of which are listed
in sys/conf/files. Ideally, there should be a separate option for
including ng_mppc.c in kernel build, but now only
NETGRAPH_MPPC_ENCRYPTION is usable anyway, the other one requires
proprietary files.
nwfs and smbfs were trying to ensure they were built with proper
network components, but the check was rather questionable.
Discussed with: ru
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_mppc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c index a6a7a97..55b021a 100644 --- a/sys/netgraph/ng_mppc.c +++ b/sys/netgraph/ng_mppc.c @@ -63,8 +63,14 @@ #include "opt_netgraph.h" #if !defined(NETGRAPH_MPPC_COMPRESSION) && !defined(NETGRAPH_MPPC_ENCRYPTION) +#ifdef KLD_MODULE +/* XXX NETGRAPH_MPPC_COMPRESSION isn't functional yet */ +#define NETGRAPH_MPPC_ENCRYPTION +#else +/* This case is indicative of an error in sys/conf files */ #error Need either NETGRAPH_MPPC_COMPRESSION or NETGRAPH_MPPC_ENCRYPTION #endif +#endif #ifdef NG_SEPARATE_MALLOC MALLOC_DEFINE(M_NETGRAPH_MPPC, "netgraph_mppc", "netgraph mppc node "); |