diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 9afd52185..806020fbe 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -111,6 +111,12 @@ using boost::bind; using boost::mutex; using libtorrent::aux::session_impl; +#ifdef BOOST_NO_EXCEPTIONS +namespace boost { + void throw_exception(std::exception const& e) { ::abort(); } +} +#endif + namespace libtorrent { namespace fs = boost::filesystem;