summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGeorgy Yakovlev <[email protected]>2021-12-21 16:44:18 -0800
committerTony Hutter <[email protected]>2022-02-16 17:58:55 -0800
commitf22ebf8fa666a4fbecfde4edb3a6ccd0a00db387 (patch)
treeee5c4383aae45e17e879d1747bd393a7bf0944d8 /tests
parent1fb5566a254ee42df097f0aab6c9973673a98a3b (diff)
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 <[email protected]> Signed-off-by: Georgy Yakovlev <[email protected]> Closes #12891
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/cmd/mmap_seek/mmap_seek.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c b/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c
index f476e1dba..bb36527aa 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 <stdlib.h>
#include <string.h>
#include <sys/mman.h>
+#include <sys/sysmacros.h>
#include <errno.h>
+#ifdef __linux__
+#include <linux/fs.h>
+#endif
static void
seek_data(int fd, off_t offset, off_t expected)