aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2021-01-20 15:55:36 +0000
committerAlan Somers <asomers@FreeBSD.org>2021-02-08 23:41:35 +0000
commit174a7e578a33c01401e33f9bfcc077fc3155251c (patch)
tree776bd9060a52d0f41490834ef854a9ac72df2b79 /sys
parent924d1c9a050d7e355d0562fca62bd2bb9b5f53d7 (diff)
downloadsrc-174a7e578a33c01401e33f9bfcc077fc3155251c.tar.gz
src-174a7e578a33c01401e33f9bfcc077fc3155251c.zip
ZFS: fix assertions with INVARIANTS
AFAICT, this was an oversight from 9e5787d2284e187abb5b654d924394a65772e004 (svn r364746). That revision inadvertently disabled assertions unconditionally. Reviewed by: freqlabs MFC after: 3 days Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D28256
Diffstat (limited to 'sys')
-rw-r--r--sys/modules/zfs/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile
index e4b92db764ef..49256609b549 100644
--- a/sys/modules/zfs/Makefile
+++ b/sys/modules/zfs/Makefile
@@ -282,6 +282,8 @@ SRCS+= zfs_zstd.c \
.include <bsd.kmod.mk>
+CFLAGS+= -include ${SRCTOP}/sys/cddl/compat/opensolaris/sys/debug_compat.h
+
CWARNFLAGS+= ${OPENZFS_CWARNFLAGS}
CFLAGS.gcc+= -Wno-pointer-to-int-cast