makes it build with logging

This commit is contained in:
Arvid Norberg 2005-11-02 20:59:36 +00:00
parent d7b1dda483
commit c71a5a9435
2 changed files with 5 additions and 2 deletions

View File

@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE.
# define TORRENT_EXPORT
# endif
#elif defined(__GNUC__)
# define TORRENT_EXPORT
#elif defined(BOOST_MSVC)
# if defined(TORRENT_BUILDING_SHARED)

View File

@ -884,8 +884,7 @@ namespace libtorrent { namespace detail
, "connection attempt failed"));
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
(*m_logger) << boost::posix_time::microsec_clock::universal_time() << " FAILED: "
<< (*i)->sender().as_string() << std::endl;
(*m_logger) << "FAILED: " << (*i)->sender().as_string() << "\n";
#endif
p->second->set_failed();
m_half_open.erase(p);