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
This commit is contained in:
parent
fc18f73daf
commit
c0d157d85f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user