unbuffered mode for solaris

This commit is contained in:
Arvid Norberg 2010-03-21 17:26:21 +00:00
parent 686fc1a1c7
commit f28b9bb501
1 changed files with 10 additions and 0 deletions

View File

@ -828,7 +828,17 @@ namespace libtorrent
return false;
}
#ifdef DIRECTIO_ON
// for solaris
if (mode & no_buffer)
{
int yes = 1;
directio(m_fd, DIRECTIO_ON);
}
#endif
#ifdef F_NOCACHE
// for BSD/Mac
if (mode & no_buffer)
{
int yes = 1;