fix warning when building without IPv6 support

This commit is contained in:
Arvid Norberg 2013-07-22 15:50:19 +00:00
parent a6c662ec0a
commit 158cb797c6
1 changed files with 8 additions and 5 deletions

View File

@ -122,19 +122,22 @@ namespace libtorrent
// number of bytes downloaded in this block // number of bytes downloaded in this block
unsigned bytes_progress:15; unsigned bytes_progress:15;
// the total number of bytes in this block // the total number of bytes in this block
unsigned block_size:15; unsigned block_size:15;
private:
// the type of the addr union
unsigned is_v6_addr:1;
// unsigned unused:1;
public:
// the state this block is in (see block_state_t) // the state this block is in (see block_state_t)
unsigned state:2; unsigned state:2;
// the number of peers that has requested this block // the number of peers that has requested this block
// typically 0 or 1. If > 1, this block is in // typically 0 or 1. If > 1, this block is in
// end game mode // end game mode
unsigned num_peers:14; unsigned num_peers:14;
private:
#if TORRENT_USE_IPV6
// the type of the addr union
unsigned is_v6_addr:1;
#endif
}; };
struct TORRENT_EXPORT partial_piece_info struct TORRENT_EXPORT partial_piece_info