# Useful functions which we can do without.
AC_CHECK_FUNCS([futimens utimensat flock mempcpy \
- openat fstatat readlinkat fdopendir])
+ openat fstatat readlinkat fdopendir posix_fallocate])
# Header checks, most of which are only here to satisfy conditional includes
# made by the libntfs-3g headers.
return WIMLIB_ERR_OPEN;
}
filedes_init(&ctx->open_fds[ctx->num_open_fds++], fd);
+#ifdef HAVE_POSIX_FALLOCATE
+ posix_fallocate(fd, 0, blob->size);
+#endif
return unix_create_hardlinks(inode, first_dentry, first_path, ctx);
}