From 95d4c3af5dfd53fedb8de126568426fa2638f70c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 15 Feb 2010 07:16:41 +0000 Subject: [PATCH] don't use posix_fallocate on BSD --- include/libtorrent/config.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index 5998f40d1..cb6392ccf 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -125,6 +125,7 @@ POSSIBILITY OF SUCH DAMAGE. #if defined __APPLE__ #define TORRENT_USE_ICONV 0 #endif +#define TORRENT_HAS_FALLOCATE 0 // ==== LINUX === #elif defined __linux__ @@ -145,6 +146,7 @@ POSSIBILITY OF SUCH DAMAGE. // is necessary #define TORRENT_USE_ICONV 0 #define TORRENT_USE_RLIMIT 0 +#define TORRENT_HAS_FALLOCATE 0 // ==== SOLARIS === #elif defined sun || defined __sun