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 <behlendorf1@llnl.gov> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> Closes #12891
This commit is contained in:
parent
1fb5566a25
commit
f22ebf8fa6
|
@ -29,7 +29,11 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <sys/sysmacros.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <linux/fs.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
seek_data(int fd, off_t offset, off_t expected)
|
seek_data(int fd, off_t offset, off_t expected)
|
||||||
|
|
Loading…
Reference in New Issue