boost 1.35 fixes

This commit is contained in:
Arvid Norberg 2009-06-19 17:39:49 +00:00
parent 306b75e6b1
commit 8c93ba1175
1 changed files with 12 additions and 0 deletions

View File

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