summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2012-09-01 07:35:16 +0000
committerrpaulo <rpaulo@FreeBSD.org>2012-09-01 07:35:16 +0000
commita56e2b74389aa5a833a2c236cb9e23fc5c297c83 (patch)
treed20e2a9a8ff9faa3ce5272d7bf4f0ea97b056cd8 /sys/modules
parentd666707f2a1df9175bd2df134d114e0d23315da8 (diff)
downloadFreeBSD-src-a56e2b74389aa5a833a2c236cb9e23fc5c297c83.zip
FreeBSD-src-a56e2b74389aa5a833a2c236cb9e23fc5c297c83.tar.gz
The dtnfsclient module dependency should only be added if the old NFS
client support was compiled in.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/dtrace/dtraceall/Makefile2
-rw-r--r--sys/modules/dtrace/dtraceall/dtraceall.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/modules/dtrace/dtraceall/Makefile b/sys/modules/dtrace/dtraceall/Makefile
index 27bf705..6def76e 100644
--- a/sys/modules/dtrace/dtraceall/Makefile
+++ b/sys/modules/dtrace/dtraceall/Makefile
@@ -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}/../../..
diff --git a/sys/modules/dtrace/dtraceall/dtraceall.c b/sys/modules/dtrace/dtraceall/dtraceall.c
index 9d7a23d..23b48b1 100644
--- a/sys/modules/dtrace/dtraceall/dtraceall.c
+++ b/sys/modules/dtrace/dtraceall/dtraceall.c
@@ -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);
OpenPOWER on IntegriCloud