diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-02-19 02:43:42 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-02-19 02:43:42 +0000 |
commit | c0d157d85fda873b81744e7a0a01ad494a4b1ad4 (patch) | |
tree | 7592c40ec3ee6250abaa7e2e38e4754e14ea78c3 /sys/modules/coda5 | |
parent | fc18f73daf880e9e9cddf69a07ac56398d985bb1 (diff) | |
download | src-c0d157d85fda873b81744e7a0a01ad494a4b1ad4.tar.gz src-c0d157d85fda873b81744e7a0a01ad494a4b1ad4.zip |
For the coda5 module, CODA_COMPAT_5 is mandatory, not optional.
Without CODA_COMPAT_5, it would be equivalent to the plain coda
module. Therefore just add -DCODA_COMPAT_5 to CFLAGS instead of
fiddling with opt_coda.h. This is particularly important when
the module is built along with the kernel and CODA_COMPAT_5 isn't
in the kernel conf file (and so not in opt_coda.h either).
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=155828
Diffstat (limited to 'sys/modules/coda5')
-rw-r--r-- | sys/modules/coda5/Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/modules/coda5/Makefile b/sys/modules/coda5/Makefile index 4c0226e80348..a284632c01ab 100644 --- a/sys/modules/coda5/Makefile +++ b/sys/modules/coda5/Makefile @@ -8,9 +8,6 @@ SRCS= vnode_if.h \ coda_venus.c coda_vfsops.c coda_vnops.c \ opt_coda.h -.if !defined(KERNBUILDDIR) -opt_coda.h: - echo "#define CODA_COMPAT_5" > ${.TARGET} -.endif +CFLAGS+= -DCODA_COMPAT_5 .include <bsd.kmod.mk> |