forked from premiere/premiere-libtorrent
fix coalesce read bug
This commit is contained in:
parent
7ca769884c
commit
16b32741ce
|
@ -967,7 +967,7 @@ namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TORRENT_USE_PREADV
|
#if TORRENT_USE_PREADV
|
||||||
std::int64_t ret = iov(&::preadv, native_handle(), file_offset, bufs, ec);
|
std::int64_t ret = iov(&::preadv, native_handle(), file_offset, tmp_bufs, ec);
|
||||||
#elif TORRENT_USE_PREAD
|
#elif TORRENT_USE_PREAD
|
||||||
std::int64_t ret = iov(&::pread, native_handle(), file_offset, tmp_bufs, ec);
|
std::int64_t ret = iov(&::pread, native_handle(), file_offset, tmp_bufs, ec);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue