diff options
author | krion <krion@FreeBSD.org> | 2005-01-19 13:36:52 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2005-01-19 13:36:52 +0000 |
commit | ad193acacbd1172334c395eab4263fb7251b21c2 (patch) | |
tree | 1b7470758600ad7d07865b21d97b639c504d0e77 | |
parent | a3bdc56e8e95f07bbe31a88240eb2f9276a872b2 (diff) | |
download | FreeBSD-ports-ad193acacbd1172334c395eab4263fb7251b21c2.zip FreeBSD-ports-ad193acacbd1172334c395eab4263fb7251b21c2.tar.gz |
Fix build on amd64, sparc64, ia64.
PR: ports/76463
Submitted by: maintainer
-rw-r--r-- | net-p2p/libtorrent/files/patch-src::data::file_chunk.cc | 28 | ||||
-rw-r--r-- | net/libtorrent/files/patch-src::data::file_chunk.cc | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/net-p2p/libtorrent/files/patch-src::data::file_chunk.cc b/net-p2p/libtorrent/files/patch-src::data::file_chunk.cc new file mode 100644 index 0000000..2589ee5 --- /dev/null +++ b/net-p2p/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()); + } 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 0000000..2589ee5 --- /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()); + } |