aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorRobert Wing <rew@FreeBSD.org>2021-05-12 02:57:24 +0000
committerRobert Wing <rew@FreeBSD.org>2021-05-14 21:00:24 +0000
commit91f251b2ab3ade5de703756873142bfae2573753 (patch)
tree6bdb93c0ff6ea45efc9236bf2e40905641de43f5 /usr.sbin
parentcf653b7abea3852cac8dfb65415f7349baa6ceb1 (diff)
downloadsrc-91f251b2ab3ade5de703756873142bfae2573753.tar.gz
src-91f251b2ab3ade5de703756873142bfae2573753.zip
fstyp(8): define HAVE_ZFS macro when built with zfs
The HAVE_ZFS macro was dropped from the Makefile during the OpenZFS merge, bring it back. While here, drop unused WARNS setting. PR: 255616 Reported by: Michael Büker <freebsd@michael-bueker.de> Submitted by: Michael Büker <freebsd@michael-bueker.de> Fixes: 9e5787d2284e187abb5b654d924394a65772e004 Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30221
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/fstyp/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/fstyp/Makefile b/usr.sbin/fstyp/Makefile
index bfdc845bba4a..14b5d9dfd9c3 100644
--- a/usr.sbin/fstyp/Makefile
+++ b/usr.sbin/fstyp/Makefile
@@ -28,7 +28,7 @@ SUBDIR.${MK_TESTS}+= tests
.if ${MK_ZFS} != "no"
IGNORE_PRAGMA= YES
-WARNS?= 0
+CFLAGS+= -DHAVE_ZFS
CFLAGS.zfs.c+= -DIN_BASE
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/include
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include