summaryrefslogtreecommitdiffstats
path: root/ftp-libs/libtorrent
diff options
context:
space:
mode:
authorEric Sandall2009-05-14 01:17:33 -0700
committerEric Sandall2009-05-14 01:17:33 -0700
commit01c886acd90592708cc77ef6610e444dff84ab91 (patch)
treec20ab11ba25d18aea4afc764087ac8518dc7bb32 /ftp-libs/libtorrent
parent55b89d48a821dcab648e19e495ae7917799e62f8 (diff)
libtorrent: Fix compilation with GCC 4.4.0
Patch from http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-libs/libtorrent/files/libtorrent-0.12.4-gcc44.patch?rev=1.2
Diffstat (limited to 'ftp-libs/libtorrent')
-rw-r--r--ftp-libs/libtorrent/HISTORY5
-rwxr-xr-xftp-libs/libtorrent/PRE_BUILD1
-rw-r--r--ftp-libs/libtorrent/gcc44.patch53
3 files changed, 59 insertions, 0 deletions
diff --git a/ftp-libs/libtorrent/HISTORY b/ftp-libs/libtorrent/HISTORY
index dae3ef88d9..82e50db881 100644
--- a/ftp-libs/libtorrent/HISTORY
+++ b/ftp-libs/libtorrent/HISTORY
@@ -1,3 +1,8 @@
+2009-05-14 Eric Sandall <sandalle@sourcemage.org>
+ * PRE_BUILD: Apply gcc44.patch
+ * gcc44.patch: Fix compilation with GCC 4.4.0
+ From http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-libs/libtorrent/files/libtorrent-0.12.4-gcc44.patch?rev=1.2
+
2008-11-19 Mathieu Lonjaret <lejatorn@sourcemage.org>
* DETAILS: update to 0.12.4
diff --git a/ftp-libs/libtorrent/PRE_BUILD b/ftp-libs/libtorrent/PRE_BUILD
index ea304d2d3a..0be0c429af 100755
--- a/ftp-libs/libtorrent/PRE_BUILD
+++ b/ftp-libs/libtorrent/PRE_BUILD
@@ -1,3 +1,4 @@
default_pre_build &&
cd ${SOURCE_DIRECTORY} &&
+patch -p1 < $SCRIPT_DIRECTORY/gcc44.patch &&
./autogen.sh
diff --git a/ftp-libs/libtorrent/gcc44.patch b/ftp-libs/libtorrent/gcc44.patch
new file mode 100644
index 0000000000..fd534d8bbc
--- /dev/null
+++ b/ftp-libs/libtorrent/gcc44.patch
@@ -0,0 +1,53 @@
+#
+# From http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-libs/libtorrent/files/libtorrent-0.12.4-gcc44.patch?rev=1.2
+#
+diff -Nurp libtorrent-0.12.4.old/src/torrent/poll_epoll.cc libtorrent-0.12.4/src/torrent/poll_epoll.cc
+--- libtorrent-0.12.4.old/src/torrent/poll_epoll.cc 2008-10-28 06:49:47.000000000 -0500
++++ libtorrent-0.12.4/src/torrent/poll_epoll.cc 2009-02-04 09:45:22.000000000 -0600
+@@ -37,6 +37,7 @@
+ #include "config.h"
+
+ #include <cerrno>
++#include <cstdio>
+ #include <cstring>
+
+ #include <unistd.h>
+
+
+diff -Nurp libtorrent-0.12.4.old/src/protocol/extensions.cc libtorrent-0.12.4/src/protocol/extensions.cc
+--- libtorrent-0.12.4.old/src/protocol/extensions.cc 2008-08-26 15:15:15.000000000 -0500
++++ libtorrent-0.12.4/src/protocol/extensions.cc 2009-02-04 09:47:07.000000000 -0600
+@@ -36,6 +36,7 @@
+
+ #include "config.h"
+
++#include <cstdio>
+ #include <limits>
+ #include <sstream>
+
+diff -Nurp libtorrent-0.12.4.old/src/tracker/tracker_dht.cc libtorrent-0.12.4/src/tracker/tracker_dht.cc
+--- libtorrent-0.12.4.old/src/tracker/tracker_dht.cc 2008-08-26 15:18:34.000000000 -0500
++++ libtorrent-0.12.4/src/tracker/tracker_dht.cc 2009-02-04 09:48:49.000000000 -0600
+@@ -36,6 +36,8 @@
+
+ #include "config.h"
+
++#include <cstdio>
++
+ #include <sstream>
+
+ #include "dht/dht_router.h"
+
+diff -Nurp libtorrent-0.12.4.old/src/tracker/tracker_udp.cc libtorrent-0.12.4/src/tracker/tracker_udp.cc
+--- libtorrent-0.12.4.old/src/tracker/tracker_udp.cc 2008-05-07 07:19:13.000000000 -0500
++++ libtorrent-0.12.4/src/tracker/tracker_udp.cc 2009-02-04 09:49:24.000000000 -0600
+@@ -36,6 +36,8 @@
+
+ #include "config.h"
+
++#include <cstdio>
++
+ #include <sigc++/adaptors/bind.h>
+ #include <torrent/connection_manager.h>
+
+