summaryrefslogtreecommitdiff
path: root/usr.sbin/fstyp
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2015-12-26 19:48:36 +0000
committerAllan Jude <allanjude@FreeBSD.org>2015-12-26 19:48:36 +0000
commitb5e81ea6b081ac5ec8d75d895daff4e174b5ea84 (patch)
tree1c7d478b92d4faaa4947160d1f131606209a1001 /usr.sbin/fstyp
parent6075c2fc6a79a43a4dd41971295dcdffda6fd258 (diff)
downloadsrc-test2-b5e81ea6b081ac5ec8d75d895daff4e174b5ea84.tar.gz
src-test2-b5e81ea6b081ac5ec8d75d895daff4e174b5ea84.zip
Notes
Diffstat (limited to 'usr.sbin/fstyp')
-rw-r--r--usr.sbin/fstyp/Makefile4
-rw-r--r--usr.sbin/fstyp/zfs.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/fstyp/Makefile b/usr.sbin/fstyp/Makefile
index e82dd040c229..5eba12bcabf7 100644
--- a/usr.sbin/fstyp/Makefile
+++ b/usr.sbin/fstyp/Makefile
@@ -19,6 +19,8 @@ WARNS?= 2
SUBDIR+= tests
.endif
+CFLAGS+=-I${.CURDIR}/../../sys
+
.if ${MK_ZFS} != "no"
IGNORE_PRAGMA= YES
@@ -34,8 +36,6 @@ CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head
.endif
-CFLAGS+=-I${.CURDIR}/../../sys
-
LIBADD= geom md
.if ${MK_ZFS} != "no"
diff --git a/usr.sbin/fstyp/zfs.c b/usr.sbin/fstyp/zfs.c
index 1c9ca4d52f7d..c37a5dbb72b7 100644
--- a/usr.sbin/fstyp/zfs.c
+++ b/usr.sbin/fstyp/zfs.c
@@ -29,6 +29,9 @@
__FBSDID("$FreeBSD$");
#include <sys/types.h>
+#include <cddl/compat/opensolaris/sys/types.h>
+#include <sys/time.h>
+#include <cddl/compat/opensolaris/sys/time.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>