diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index a5a3bd3b7..09ccbe6b7 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -36,7 +36,11 @@ POSSIBILITY OF SUCH DAMAGE. #include #include #include + +#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING #include // for va_start, va_end +#include // for vsnprintf +#endif #include "libtorrent/peer_connection.hpp" #include "libtorrent/identify_client.hpp"