Skip to content

Commit

Permalink
fix missing include in python binding, torrent_info
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 15, 2021
1 parent c1d4911 commit 4ad4e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/python/src/torrent_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "libtorrent/time.hpp"
#include "libtorrent/socket_io.hpp"
#include "libtorrent/announce_entry.hpp"
#include "libtorrent/info_hash.hpp" // for protocol_version
#include "libtorrent/tracker_manager.hpp" // for event_t
#include "bytes.hpp"
#include "gil.hpp"
Expand Down Expand Up @@ -361,7 +362,7 @@ void bind_torrent_info()
.def_readwrite("size", &file_slice::size)
;

enum_<protocol_version>("protocol_version")
enum_<lt::protocol_version>("protocol_version")
.value("V1", protocol_version::V1)
.value("V2", protocol_version::V2)
;
Expand Down

0 comments on commit 4ad4e8e

Please sign in to comment.