diff options
Diffstat (limited to 'net/rtorrent/patches/patch-src_thread__base.cc')
-rw-r--r-- | net/rtorrent/patches/patch-src_thread__base.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/rtorrent/patches/patch-src_thread__base.cc b/net/rtorrent/patches/patch-src_thread__base.cc new file mode 100644 index 00000000000..01ef4485f1f --- /dev/null +++ b/net/rtorrent/patches/patch-src_thread__base.cc @@ -0,0 +1,28 @@ +$NetBSD: patch-src_thread__base.cc,v 1.3 2013/09/18 16:33:09 joerg Exp $ + +--- src/thread_base.cc.orig 2012-02-14 03:41:20.000000000 +0000 ++++ src/thread_base.cc +@@ -53,6 +53,14 @@ + #include "control.h" + #include "core/manager.h" + ++#if __cplusplus >= 201103L ++#include <functional> ++using std::bind; ++#else ++#include <tr1/functional> ++using std::tr1::bind; ++#endif ++ + // Temporarly injected into config.h. + /* temp hack */ + //#define lt_cacheline_aligned __attribute__((__aligned__(128))) +@@ -109,7 +117,7 @@ public: + void throw_shutdown_exception() { throw torrent::shutdown_exception(); } + + ThreadBase::ThreadBase() { +- m_taskShutdown.slot() = std::tr1::bind(&throw_shutdown_exception); ++ m_taskShutdown.slot() = bind(&throw_shutdown_exception); + + m_threadQueue = new thread_queue_hack; + } |