From f22ebf8fa666a4fbecfde4edb3a6ccd0a00db387 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev <168902+gyakovlev@users.noreply.github.com> Date: Tue, 21 Dec 2021 16:44:18 -0800 Subject: [PATCH] zfs-test/mmap_seek: fix build on musl The build on musl needs linux/fs.h for SEEK_DATA and friends, and sys/sysmacros.h for P2ROUNDUP. Add the needed headers. Reviewed-by: Brian Behlendorf Signed-off-by: Georgy Yakovlev Closes #12891 --- tests/zfs-tests/cmd/mmap_seek/mmap_seek.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c b/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c index f476e1dba9..bb36527aaf 100644 --- a/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c +++ b/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c @@ -29,7 +29,11 @@ #include #include #include +#include #include +#ifdef __linux__ +#include +#endif static void seek_data(int fd, off_t offset, off_t expected)