From 5471b098eb880dcd6ffc1308f77fd7c3f57dc252 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 18 Jan 2010 06:18:34 +0000 Subject: [PATCH] falloc build fix --- src/file.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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