forked from premiere/premiere-libtorrent
boost 1.35 fixes
This commit is contained in:
parent
306b75e6b1
commit
8c93ba1175
|
@ -129,7 +129,13 @@ struct test_storage : storage_interface
|
|||
if (ret > 0) m_written += ret;
|
||||
if (m_written > m_limit)
|
||||
{
|
||||
#if BOOST_VERSION == 103500
|
||||
set_error("", error_code(boost::system::posix_error::no_space_on_device, get_posix_category()));
|
||||
#elif BOOST_VERSION > 103500
|
||||
set_error("", error_code(boost::system::errc::no_space_on_device, get_posix_category()));
|
||||
#else
|
||||
set_error("", error_code(ENOSPC, get_posix_category()));
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
return ret;
|
||||
|
@ -144,7 +150,13 @@ struct test_storage : storage_interface
|
|||
if (ret > 0) m_written += ret;
|
||||
if (m_written > m_limit)
|
||||
{
|
||||
#if BOOST_VERSION == 103500
|
||||
set_error("", error_code(boost::system::posix_error::no_space_on_device, get_posix_category()));
|
||||
#elif BOOST_VERSION > 103500
|
||||
set_error("", error_code(boost::system::errc::no_space_on_device, get_posix_category()));
|
||||
#else
|
||||
set_error("", error_code(ENOSPC, get_posix_category()));
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue