The dtnfsclient module dependency should only be added if the old NFS

client support was compiled in.
This commit is contained in:
Rui Paulo 2012-09-01 07:35:16 +00:00
parent 77674f56a3
commit 4685b7aabd
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
KMOD= dtraceall
SRCS= dtraceall.c opt_compat.h
SRCS= dtraceall.c opt_compat.h opt_nfs.h
CFLAGS+= -I${.CURDIR}/../../..

View File

@ -33,6 +33,7 @@
#include <sys/module.h>
#include <sys/errno.h>
#include "opt_compat.h"
#include "opt_nfs.h"
static int
dtraceall_modevent(module_t mod __unused, int type, void *data __unused)
@ -68,7 +69,9 @@ MODULE_DEPEND(dtraceall, dtrace, 1, 1, 1);
MODULE_DEPEND(dtraceall, dtio, 1, 1, 1);
MODULE_DEPEND(dtraceall, dtmalloc, 1, 1, 1);
MODULE_DEPEND(dtraceall, dtnfscl, 1, 1, 1);
#if defined(NFSCLIENT)
MODULE_DEPEND(dtraceall, dtnfsclient, 1, 1, 1);
#endif
#if defined(__amd64__) || defined(__i386__)
MODULE_DEPEND(dtraceall, fbt, 1, 1, 1);
MODULE_DEPEND(dtraceall, fasttrap, 1, 1, 1);