diff options
author | Markus Brueffer <markus@FreeBSD.org> | 2005-10-10 18:41:20 +0000 |
---|---|---|
committer | Markus Brueffer <markus@FreeBSD.org> | 2005-10-10 18:41:20 +0000 |
commit | 5c0706e43b43043404c5524295d17fbc6c94aead (patch) | |
tree | 38a493b9c5338fedc775412529f71224adb1867d /net-p2p/ktorrent-devel/files | |
parent | 289c902018f6fdf43302a3eef953263e00b608c1 (diff) |
Notes
Diffstat (limited to 'net-p2p/ktorrent-devel/files')
3 files changed, 54 insertions, 10 deletions
diff --git a/net-p2p/ktorrent-devel/files/patch-libtorrent-chunkmanager.cpp b/net-p2p/ktorrent-devel/files/patch-libtorrent-chunkmanager.cpp new file mode 100644 index 000000000000..0ff4cec92e7c --- /dev/null +++ b/net-p2p/ktorrent-devel/files/patch-libtorrent-chunkmanager.cpp @@ -0,0 +1,44 @@ +--- libtorrent/chunkmanager.cpp.orig Mon Oct 10 20:06:38 2005 ++++ libtorrent/chunkmanager.cpp Mon Oct 10 20:10:53 2005 +@@ -315,8 +315,11 @@ + + void ChunkManager::prioritise(Uint32 from,Uint32 to) + { +- if (from > to) +- std::swap(from,to); ++ if (from > to) { ++ Uint32 tmp = from; ++ from = to; ++ to = tmp; ++ } + + Uint32 i = from; + while (i <= to && i < chunks.count()) +@@ -329,8 +332,11 @@ + + void ChunkManager::exclude(Uint32 from,Uint32 to) + { +- if (from > to) +- std::swap(from,to); ++ if (from > to) { ++ Uint32 tmp = from; ++ from = to; ++ to = tmp; ++ } + + Uint32 i = from; + while (i <= to && i < chunks.count()) +@@ -347,8 +353,11 @@ + + void ChunkManager::include(Uint32 from,Uint32 to) + { +- if (from > to) +- std::swap(from,to); ++ if (from > to) { ++ Uint32 tmp = from; ++ from = to; ++ to = tmp; ++ } + + Uint32 i = from; + while (i <= to && i < chunks.count()) diff --git a/net-p2p/ktorrent-devel/files/patch-libtorrent-udptracker.cpp b/net-p2p/ktorrent-devel/files/patch-libtorrent-udptracker.cpp deleted file mode 100644 index fd021170533c..000000000000 --- a/net-p2p/ktorrent-devel/files/patch-libtorrent-udptracker.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- libtorrent/udptracker.cpp.orig Wed Jul 13 12:33:37 2005 -+++ libtorrent/udptracker.cpp Wed Jul 13 12:34:07 2005 -@@ -18,6 +18,7 @@ - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - #include <stdlib.h> -+#include <sys/time.h> - #include <qsocketnotifier.h> - #include <qsocketdevice.h> - diff --git a/net-p2p/ktorrent-devel/files/patch-libtorrent-udptrackersocket.cpp b/net-p2p/ktorrent-devel/files/patch-libtorrent-udptrackersocket.cpp new file mode 100644 index 000000000000..8461fcf2851c --- /dev/null +++ b/net-p2p/ktorrent-devel/files/patch-libtorrent-udptrackersocket.cpp @@ -0,0 +1,10 @@ +--- libtorrent/udptrackersocket.cpp.orig Mon Oct 10 20:18:17 2005 ++++ libtorrent/udptrackersocket.cpp Mon Oct 10 20:19:22 2005 +@@ -17,6 +17,7 @@ + * Free Software Foundation, Inc., * + * 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ ++#include <sys/time.h> + #include <stdlib.h> + #include <libutil/array.h> + #include <qsocketdevice.h> |