diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index 864a2a2b5..c8d86955e 100755 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -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) diff --git a/src/session.cpp b/src/session.cpp index 1b4833226..0dcc899e6 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -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);