don't use posix_fallocate on BSD

This commit is contained in:
Arvid Norberg 2010-02-15 07:16:41 +00:00
parent 08c8bfae29
commit 95d4c3af5d
1 changed files with 2 additions and 0 deletions

View File

@ -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