summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2009-10-01 14:42:55 +0000
committernyan <nyan@FreeBSD.org>2009-10-01 14:42:55 +0000
commitc83a5ab6acd6cc41b329eac85114ee447635df00 (patch)
tree5ec9520ec4c018ea740a7a7599ab18522f6b15fe /sys/modules
parentbee4d5ff2bcbe7fc7560193231b8503d327629c1 (diff)
downloadFreeBSD-src-c83a5ab6acd6cc41b329eac85114ee447635df00.zip
FreeBSD-src-c83a5ab6acd6cc41b329eac85114ee447635df00.tar.gz
MFC: revision 197535
Add '#define NFSCLIENT' into opt_nfs.h if the NFSCLIENT variable is 1 (the default is 1). This makes the nfslockd module works for NFS client. Reviewed by: dfr Approved by: re (kib)
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/nfslockd/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/modules/nfslockd/Makefile b/sys/modules/nfslockd/Makefile
index c76c2dd..d8255aa 100644
--- a/sys/modules/nfslockd/Makefile
+++ b/sys/modules/nfslockd/Makefile
@@ -14,11 +14,18 @@ SRCS+= opt_inet6.h opt_nfs.h
.if !defined(KERNBUILDDIR)
NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel
+NFSCLIENT?= 1 # 0/1 - requires NFSCLIENT to be configured in kernel
.if ${NFS_INET6} > 0
opt_inet6.h:
echo "#define INET6 1" > ${.TARGET}
.endif
+
+.if ${NFSCLIENT} > 0
+opt_nfs.h:
+ echo "#define NFSCLIENT 1" > ${.TARGET}
+.endif
+
.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud