1 Changes for successful compilation on Solaris. |
|
2 |
|
3 Evaluate to possibly send upstream |
|
4 |
|
5 |
|
6 --- libtorrent-0.12.2/src/dht/dht_hash_map.h 2016-07-21 14:25:16.783986236 -0700 |
|
7 +++ libtorrent-0.12.2/src/dht/dht_hash_map.h 2016-07-21 14:25:27.729767142 -0700 |
|
8 @@ -167,7 +167,7 @@ |
|
9 |
|
10 inline |
|
11 DhtNode* DhtNodeList::add_node(DhtNode* n) { |
|
12 - insert(std::make_pair<const HashString*, DhtNode*>(n, n)); |
|
13 + insert(std::pair<const HashString*, DhtNode*>(n, n)); |
|
14 return n; |
|
15 } |
|
16 |
|
17 --- libtorrent-0.12.2/src/torrent/data/block.h 2008-05-07 05:19:13.000000000 -0700 |
|
18 +++ libtorrent-0.12.2/src/torrent/data/block.h 2016-07-21 14:22:47.000352058 -0700 |
|
19 @@ -37,6 +37,7 @@ |
|
20 #ifndef LIBTORRENT_BLOCK_H |
|
21 #define LIBTORRENT_BLOCK_H |
|
22 |
|
23 +#include <cstring> |
|
24 #include <vector> |
|
25 #include <torrent/common.h> |
|
26 #include <torrent/data/block_transfer.h> |
|
27 --- libtorrent-0.12.2/src/torrent/exceptions.cc 2016-07-21 14:32:05.972670769 -0700 |
|
28 +++ libtorrent-0.12.2/src/torrent/exceptions.cc 2016-07-21 14:32:23.871378484 -0700 |
|
29 @@ -37,6 +37,7 @@ |
|
30 #include "config.h" |
|
31 |
|
32 #include <cerrno> |
|
33 +#include <cstring> |
|
34 |
|
35 #include "exceptions.h" |
|
36 |
|
37 --- libtorrent-0.12.2/src/torrent/object_stream.cc 2016-07-21 14:34:49.458499366 -0700 |
|
38 +++ libtorrent-0.12.2/src/torrent/object_stream.cc 2016-07-21 14:35:46.590821537 -0700 |
|
39 @@ -38,6 +38,7 @@ |
|
40 |
|
41 #include <iterator> |
|
42 #include <iostream> |
|
43 +#include <cstring> |
|
44 #include <rak/functional.h> |
|
45 #include <rak/algorithm.h> |
|
46 |
|
47 --- libtorrent-0.12.2/src/data/chunk.cc 2016-07-21 14:36:43.901801737 -0700 |
|
48 +++ libtorrent-0.12.2/src/data/chunk.cc 2016-07-21 14:37:40.676713436 -0700 |
|
49 @@ -38,6 +38,7 @@ |
|
50 |
|
51 #include <algorithm> |
|
52 #include <functional> |
|
53 +#include <cstring> |
|
54 |
|
55 #include "torrent/exceptions.h" |
|
56 |
|
57 --- libtorrent-0.12.2/src/utils/diffie_hellman.cc 2016-07-21 14:41:11.573426007 -0700 |
|
58 +++ libtorrent-0.12.2/src/utils/diffie_hellman.cc 2016-07-21 14:41:26.800532608 -0700 |
|
59 @@ -37,6 +37,7 @@ |
|
60 #include "config.h" |
|
61 |
|
62 #include <string> |
|
63 +#include <cstring> |
|
64 |
|
65 #ifdef USE_OPENSSL |
|
66 #include <openssl/bn.h> |
|