summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-02-27 12:04:13 +0000
committeryar <yar@FreeBSD.org>2006-02-27 12:04:13 +0000
commit3822005cd36df85e1b4a87c4012224265ee9e7da (patch)
tree1eb7728f57e5547ecce3d3666051d4478399595e /sys/modules
parentaacbf565b52cf76f5f6b58b2d426954719d628b2 (diff)
downloadFreeBSD-src-3822005cd36df85e1b4a87c4012224265ee9e7da.zip
FreeBSD-src-3822005cd36df85e1b4a87c4012224265ee9e7da.tar.gz
CODA_COMPAT_5 may not be defined unconditionally in the coda5 module.
Otherwise a kernel build would break in the coda5 module if the main kernel conf file enabled CODA_COMPAT_5, too. Redefined symbols are strictly disallowed by -Werror. To overcome this issue, introduce a different symbol indicating coda5 build, CODA5_MODULE, and translate it to CODA_COMPAT_5 appropriately in /sys/coda/coda.h. MFC after: 3 days
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/coda5/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/coda5/Makefile b/sys/modules/coda5/Makefile
index a284632..5634bff 100644
--- a/sys/modules/coda5/Makefile
+++ b/sys/modules/coda5/Makefile
@@ -8,6 +8,6 @@ SRCS= vnode_if.h \
coda_venus.c coda_vfsops.c coda_vnops.c \
opt_coda.h
-CFLAGS+= -DCODA_COMPAT_5
+CFLAGS+= -DCODA5_MODULE
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud