From: Sascha Wildner Date: Wed, 11 Apr 2012 17:38:12 +0000 (+0200) Subject: kernel/smbfs: The netsmb check only applies if it is not the module build. X-Git-Tag: v3.2.0~1145 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/4705d9218de0cbb63eb16b929c363a6d6f8327e0 kernel/smbfs: The netsmb check only applies if it is not the module build. The necessary files from netsmb are built into the module. In the kernel it is two separate options. This fixes buildkernel. Reported-by: Francois Tigeot --- diff --git a/sys/vfs/smbfs/smbfs_vfsops.c b/sys/vfs/smbfs/smbfs_vfsops.c index d6a1015bf1..0fb86dc6d8 100644 --- a/sys/vfs/smbfs/smbfs_vfsops.c +++ b/sys/vfs/smbfs/smbfs_vfsops.c @@ -31,10 +31,13 @@ * * $FreeBSD: src/sys/fs/smbfs/smbfs_vfsops.c,v 1.2.2.5 2003/01/17 08:20:26 tjr Exp $ */ + +#ifndef KLD_MODULE #include "opt_netsmb.h" #ifndef NETSMB #error "SMBFS requires option NETSMB" #endif +#endif #include #include