Index: cddl/lib/libzpool/Makefile =================================================================== --- cddl/lib/libzpool/Makefile +++ cddl/lib/libzpool/Makefile @@ -239,6 +239,7 @@ -I${SRCTOP}/sys/modules/zfs \ -I${ZFSTOP}/include/os/freebsd/zfs \ -DLIB_ZPOOL_BUILD -DZFS_DEBUG \ + -DHAVE_LARGE_STACKS=1 # XXX: pthread doesn't have mutex_owned() equivalent, so we need to look # into libthr private structures. That's sooo evil, but it's only for Index: sys/modules/zfs/Makefile =================================================================== --- sys/modules/zfs/Makefile +++ sys/modules/zfs/Makefile @@ -39,6 +39,10 @@ CFLAGS+= -DBITS_PER_LONG=64 .endif +.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_ARCH} != "arm" +CFLAGS+= -DHAVE_LARGE_STACKS=1 +.endif + SRCS= vnode_if.h device_if.h bus_if.h # avl