aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2005-01-19 13:36:52 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2005-01-19 13:36:52 +0000
commit7404ab9f0315df056427c503d1a0bf6e3e6be087 (patch)
tree49bc0fb6d2844db6ad688fc8a253b0f33ddd3f51 /net
parent5d26311188f89b3fcd4907cad7b207049b6ad2de (diff)
downloadports-7404ab9f0315df056427c503d1a0bf6e3e6be087.tar.gz
ports-7404ab9f0315df056427c503d1a0bf6e3e6be087.zip
Notes
Diffstat (limited to 'net')
-rw-r--r--net/libtorrent/files/patch-src::data::file_chunk.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/libtorrent/files/patch-src::data::file_chunk.cc b/net/libtorrent/files/patch-src::data::file_chunk.cc
new file mode 100644
index 000000000000..2589ee5d7a66
--- /dev/null
+++ b/net/libtorrent/files/patch-src::data::file_chunk.cc
@@ -0,0 +1,28 @@
+--- src/data/file_chunk.cc.orig Mon Jan 17 21:31:30 2005
++++ src/data/file_chunk.cc Mon Jan 17 21:32:21 2005
+@@ -6,6 +6,7 @@
+ #include <sstream>
+ #include <unistd.h>
+ #include <sys/mman.h>
++#include <sys/types.h>
+
+ namespace torrent {
+
+@@ -32,7 +33,7 @@
+ std::stringstream s;
+
+ s << "Tried to check incore status in FileChunk with out of range parameters or a NULL buffer ("
+- << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ')';
++ << std::hex << '(' << m_begin << ',' << m_end << ')';
+
+ throw internal_error(s.str());
+ }
+@@ -63,7 +64,7 @@
+ std::stringstream s;
+
+ s << "Tried to advise FileChunk with out of range parameters"
+- << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ',' << offset << ',' << len << ')';
++ << std::hex << '(' << m_begin << ',' << m_end << ',' << offset << ',' << len << ')';
+
+ throw internal_error(s.str());
+ }