diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/kernel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index 6123b5d6a..cd6553eeb 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -1346,7 +1346,11 @@ zfs_file_fsync(zfs_file_t *fp, int flags) int zfs_file_fallocate(zfs_file_t *fp, int mode, loff_t offset, loff_t len) { +#ifdef __linux__ return (fallocate(fp->f_fd, mode, offset, len)); +#else + return (EOPNOTSUPP); +#endif } /* |