mirror of
https://github.com/aria2/aria2.git
synced 2025-04-07 06:27:37 +03:00
Fixed compile error which occurs when system has posix_fallocate() but
does not have fallocate().
This commit is contained in:
parent
da8e0203b8
commit
829803d4f5
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ void AbstractDiskWriter::allocate(off_t offset, uint64_t length)
|
|||
# elif HAVE_POSIX_FALLOCATE
|
||||
int r = posix_fallocate(fd_, offset, length);
|
||||
if(r != 0) {
|
||||
throw DL_ABORT_EX3(errNum,
|
||||
throw DL_ABORT_EX3(r,
|
||||
fmt("posix_fallocate failed. cause: %s",
|
||||
util::safeStrerror(r).c_str()),
|
||||
error_code::FILE_IO_ERROR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue