diff mbox series

src/t_mmap_dio: do not build if !HAVE_AIO

Message ID a11d5ba4-9479-112a-cc82-694e4abc02a4@redhat.com (mailing list archive)
State New, archived
Headers show
Series src/t_mmap_dio: do not build if !HAVE_AIO | expand

Commit Message

Eric Sandeen Sept. 24, 2020, 6:21 p.m. UTC
We have a config check for libaio headers, and don't build certain
tools if it is not present, but this one was missed.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff mbox series

Patch

diff --git a/src/Makefile b/src/Makefile
index 643c1916..020e1dc9 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -13,7 +13,7 @@  TARGETS = dirstress fill fill2 getpagesize holes lstat64 \
 	godown resvtest writemod writev_on_pagefault makeextents itrash rename \
 	multi_open_unlink dmiperf unwritten_sync genhashnames t_holes \
 	t_mmap_writev t_truncate_cmtime dirhash_collide t_rename_overwrite \
-	holetest t_truncate_self t_mmap_dio af_unix t_mmap_stale_pmd \
+	holetest t_truncate_self af_unix t_mmap_stale_pmd \
 	t_mmap_cow_race t_mmap_fallocate fsync-err t_mmap_write_ro \
 	t_ext4_dax_journal_corruption t_ext4_dax_inline_corruption \
 	t_ofd_locks t_mmap_collision mmap-write-concurrent \
@@ -61,6 +61,7 @@  LLDLIBS += $(LIBGDBM)
 endif
 
 ifeq ($(HAVE_AIO), true)
+TARGETS += t_mmap_dio
 SUBDIRS += aio-dio-regress
 LLDLIBS += -laio
 endif