diff options
Diffstat (limited to 'net/libtorrent/patches/patch-src_torrent_data_download__data.h')
-rw-r--r-- | net/libtorrent/patches/patch-src_torrent_data_download__data.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/libtorrent/patches/patch-src_torrent_data_download__data.h b/net/libtorrent/patches/patch-src_torrent_data_download__data.h new file mode 100644 index 00000000000..247650f86b0 --- /dev/null +++ b/net/libtorrent/patches/patch-src_torrent_data_download__data.h @@ -0,0 +1,27 @@ +$NetBSD: patch-src_torrent_data_download__data.h,v 1.3 2013/09/18 16:32:05 joerg Exp $ + +--- src/torrent/data/download_data.h.orig 2012-02-19 09:28:55.000000000 +0000 ++++ src/torrent/data/download_data.h +@@ -37,7 +37,13 @@ + #ifndef LIBTORRENT_DATA_DOWNLOAD_DATA_H + #define LIBTORRENT_DATA_DOWNLOAD_DATA_H + ++#if __cplusplus >= 201103L ++#include <functional> ++using std::function; ++#else + #include <tr1/functional> ++using std::tr1::function; ++#endif + + #include <torrent/common.h> + #include <torrent/bitfield.h> +@@ -57,7 +63,7 @@ public: + + typedef void (function_void)(void); + +- typedef std::tr1::function<function_void> slot_void; ++ typedef function<function_void> slot_void; + + download_data() : m_wanted_chunks(0) {} + |