summaryrefslogtreecommitdiff
path: root/net/rtorrent/patches/patch-rak_priority__queue__default.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/rtorrent/patches/patch-rak_priority__queue__default.h')
-rw-r--r--net/rtorrent/patches/patch-rak_priority__queue__default.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/net/rtorrent/patches/patch-rak_priority__queue__default.h b/net/rtorrent/patches/patch-rak_priority__queue__default.h
new file mode 100644
index 00000000000..168d19efab0
--- /dev/null
+++ b/net/rtorrent/patches/patch-rak_priority__queue__default.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-rak_priority__queue__default.h,v 1.3 2013/09/18 16:33:08 joerg Exp $
+
+--- rak/priority_queue_default.h.orig 2012-02-14 03:32:01.000000000 +0000
++++ rak/priority_queue_default.h
+@@ -38,7 +38,13 @@
+ #define RAK_PRIORITY_QUEUE_DEFAULT_H
+
+ #include <stdexcept>
++#if __cplusplus >= 201103L
++#include <functional>
++using std::function;
++#else
+ #include <tr1/functional>
++using std::tr1::function;
++#endif
+ #include <rak/allocators.h>
+ #include <rak/priority_queue.h>
+ #include <rak/timer.h>
+@@ -47,7 +53,7 @@ namespace rak {
+
+ class priority_item {
+ public:
+- typedef std::tr1::function<void (void)> slot_void;
++ typedef function<void (void)> slot_void;
+
+ priority_item() {}
+ ~priority_item() {