File libtorrent-gcc4.3-0.12.2.patch of Package libtorrent

Index: rak/functional.h
===================================================================
--- rak/functional.h.orig	2008-05-07 14:19:14.000000000 +0200
+++ rak/functional.h	2009-05-09 17:00:38.000000000 +0200
@@ -37,6 +37,7 @@
 #ifndef RAK_FUNCTIONAL_H
 #define RAK_FUNCTIONAL_H
 
+#include <cstddef>
 #include <functional>
 
 namespace rak {
Index: src/data/chunk.cc
===================================================================
--- src/data/chunk.cc.orig	2008-05-07 14:19:13.000000000 +0200
+++ src/data/chunk.cc	2009-05-09 17:00:24.000000000 +0200
@@ -36,6 +36,7 @@
 
 #include "config.h"
 
+#include <cstring>
 #include <algorithm>
 #include <functional>
 
Index: src/data/chunk_list.h
===================================================================
--- src/data/chunk_list.h.orig	2008-05-07 14:19:13.000000000 +0200
+++ src/data/chunk_list.h	2009-05-09 17:01:02.000000000 +0200
@@ -38,6 +38,7 @@
 #define LIBTORRENT_DATA_CHUNK_LIST_H
 
 #include <vector>
+#include <string>
 #include <rak/error_number.h>
 #include <rak/functional.h>
 
Index: src/net/address_list.cc
===================================================================
--- src/net/address_list.cc.orig	2008-05-07 14:19:12.000000000 +0200
+++ src/net/address_list.cc	2009-05-09 17:01:29.000000000 +0200
@@ -36,6 +36,8 @@
 
 #include "config.h"
 
+#include <algorithm>
+
 #include <rak/functional.h>
 
 #include "download/download_info.h"  // for SocketAddressCompact
Index: src/torrent/data/file_list_iterator.h
===================================================================
--- src/torrent/data/file_list_iterator.h.orig	2008-05-07 14:19:13.000000000 +0200
+++ src/torrent/data/file_list_iterator.h	2009-05-09 17:02:03.000000000 +0200
@@ -37,6 +37,7 @@
 #ifndef LIBTORRENT_FILE_LIST_ITERATOR_H
 #define LIBTORRENT_FILE_LIST_ITERATOR_H
 
+#include <cstdlib>
 #include <torrent/common.h>
 #include <torrent/data/file_list.h>
 
Index: src/torrent/exceptions.cc
===================================================================
--- src/torrent/exceptions.cc.orig	2008-05-07 14:19:13.000000000 +0200
+++ src/torrent/exceptions.cc	2009-05-09 17:02:28.000000000 +0200
@@ -37,6 +37,7 @@
 #include "config.h"
 
 #include <cerrno>
+#include <cstring>
 
 #include "exceptions.h"
 
Index: src/torrent/tracker_list.h
===================================================================
--- src/torrent/tracker_list.h.orig	2008-05-07 14:19:13.000000000 +0200
+++ src/torrent/tracker_list.h	2009-05-09 17:02:51.000000000 +0200
@@ -38,6 +38,7 @@
 #define LIBTORRENT_TRACKER_LIST_H
 
 #include <algorithm>
+#include <string>
 #include <vector>
 #include <torrent/common.h>
 
Index: src/utils/diffie_hellman.cc
===================================================================
--- src/utils/diffie_hellman.cc.orig	2008-05-07 14:19:12.000000000 +0200
+++ src/utils/diffie_hellman.cc	2009-05-09 17:03:16.000000000 +0200
@@ -36,6 +36,7 @@
 
 #include "config.h"
 
+#include <cstring>
 #include <string>
 
 #ifdef USE_OPENSSL
openSUSE Build Service is sponsored by