From d58066b32d67e0f13318617c3d1d737f90475f78 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 20 Dec 2013 06:38:51 +0000 Subject: [PATCH] fix Jamfile typo for extensions=on as well as mistakes in ifdefs for encryption fields/code --- Jamfile | 2 +- include/libtorrent/bt_peer_connection.hpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Jamfile b/Jamfile index a88da1630..dfeff220b 100755 --- a/Jamfile +++ b/Jamfile @@ -347,7 +347,7 @@ feature.compose vista : _WIN32_WINNT=0x0600 ; feature.compose win7 : _WIN32_WINNT=0x0601 ; feature extensions : on off : composite propagated link-incompatible ; -feature.compose off : TORRENT_DISABLE_EXTENSION ; +feature.compose off : TORRENT_DISABLE_EXTENSIONS ; feature asio-debugging : off on : composite propagated link-incompatible ; feature.compose on : TORRENT_ASIO_DEBUGGING ; diff --git a/include/libtorrent/bt_peer_connection.hpp b/include/libtorrent/bt_peer_connection.hpp index 1ea3bbd4d..655e501f6 100644 --- a/include/libtorrent/bt_peer_connection.hpp +++ b/include/libtorrent/bt_peer_connection.hpp @@ -372,7 +372,9 @@ private: // true if rc4, false if plaintext bool m_rc4_encrypted:1; +#endif +#ifndef TORRENT_DISABLE_EXTENSIONS // the message ID for upload only message // 0 if not supported boost::uint8_t m_upload_only_id; @@ -434,7 +436,9 @@ private: // used to disconnect peer if sync points are not found within // the maximum number of bytes int m_sync_bytes_read; +#endif // #ifndef TORRENT_DISABLE_ENCRYPTION +#ifndef TORRENT_DISABLE_EXTENSIONS // the message ID for don't-have message boost::uint8_t m_dont_have_id; @@ -445,8 +449,7 @@ private: // the reserved bits received from the other peer // in the bittorrent handshake char m_reserved_bits[8]; -#endif // #ifndef TORRENT_DISABLE_ENCRYPTION - +#endif }; }