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)