Index: head/usr.sbin/fstyp/Makefile =================================================================== --- head/usr.sbin/fstyp/Makefile +++ head/usr.sbin/fstyp/Makefile @@ -19,6 +19,8 @@ SUBDIR+= tests .endif +CFLAGS+=-I${.CURDIR}/../../sys + .if ${MK_ZFS} != "no" IGNORE_PRAGMA= YES @@ -34,8 +36,6 @@ CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head .endif -CFLAGS+=-I${.CURDIR}/../../sys - LIBADD= geom md .if ${MK_ZFS} != "no" Index: head/usr.sbin/fstyp/zfs.c =================================================================== --- head/usr.sbin/fstyp/zfs.c +++ head/usr.sbin/fstyp/zfs.c @@ -29,6 +29,9 @@ __FBSDID("$FreeBSD$"); #include +#include +#include +#include #include #include #include