diff --git a/src/file.cpp b/src/file.cpp index 03bc36675..b53f23c97 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -76,7 +76,6 @@ POSSIBILITY OF SUCH DAMAGE. #include #endif -#include #include // For __NR_fallocate // circumvent the lack of support in glibc @@ -1449,7 +1448,7 @@ namespace libtorrent return false; } #elif defined TORRENT_LINUX - int ret = my_fallocate(m_fd, FALLOC_FL_KEEP_SIZE, 0, s); + int ret = my_fallocate(m_fd, 0, 0, s); if (ret == 0 && errno != ENOSYS) return true; if (ret != EOPNOTSUPP) ec.assign(ret, get_posix_category()); // if fallocate failed, we have to use posix_fallocate