Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -0,0 +1,27 @@
$NetBSD: patch-src_data_hash__queue__node.h,v 1.3 2013/09/18 16:32:05 joerg Exp $
--- src/data/hash_queue_node.h.orig 2012-03-20 15:10:16.000000000 +0000
+++ src/data/hash_queue_node.h
@@ -38,7 +38,13 @@
#define LIBTORRENT_DATA_HASH_QUEUE_NODE_H
#include <string>
+#if __cplusplus >= 201103L
+#include <functional>
+using std::function;
+#else
#include <tr1/functional>
+using std::tr1::function;
+#endif
#include <inttypes.h>
#include "chunk_handle.h"
@@ -50,7 +56,7 @@ class download_data;
class HashQueueNode {
public:
- typedef std::tr1::function<void (ChunkHandle, const char*)> slot_done_type;
+ typedef function<void (ChunkHandle, const char*)> slot_done_type;
typedef download_data* id_type;
HashQueueNode(id_type id, HashChunk* c, slot_done_type d) :