summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gentoo.org>2011-04-13 21:30:47 +0000
committerStanislav Ochotnicky <sochotnicky@gentoo.org>2011-04-13 21:30:47 +0000
commitc29d9ab455006ebc803a3ff9f7a5da138280700c (patch)
tree7b9c15d5edd6abbcf2ba914e299b182778ad3c94 /net-libs/libtorrent/files
parentAdd semantic-desktop useflag, bug 362695 (diff)
downloadgentoo-2-c29d9ab455006ebc803a3ff9f7a5da138280700c.tar.gz
gentoo-2-c29d9ab455006ebc803a3ff9f7a5da138280700c.tar.bz2
gentoo-2-c29d9ab455006ebc803a3ff9f7a5da138280700c.zip
Fix compilation with gcc 4.6.0
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/libtorrent/files')
-rw-r--r--net-libs/libtorrent/files/libtorrent-0.12.7-gcc-4.6.0.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-libs/libtorrent/files/libtorrent-0.12.7-gcc-4.6.0.patch b/net-libs/libtorrent/files/libtorrent-0.12.7-gcc-4.6.0.patch
new file mode 100644
index 000000000000..c998c6441157
--- /dev/null
+++ b/net-libs/libtorrent/files/libtorrent-0.12.7-gcc-4.6.0.patch
@@ -0,0 +1,24 @@
+diff --git a/src/data/memory_chunk.h b/src/data/memory_chunk.h
+index af71842..64d535e 100644
+--- a/src/data/memory_chunk.h
++++ b/src/data/memory_chunk.h
+@@ -40,6 +40,7 @@
+ #include <algorithm>
+ #include <inttypes.h>
+ #include <sys/mman.h>
++#include <cstddef>
+
+ namespace torrent {
+
+diff --git a/src/torrent/common.h b/src/torrent/common.h
+index 4ed250f..b7d7b7b 100644
+--- a/src/torrent/common.h
++++ b/src/torrent/common.h
+@@ -38,6 +38,7 @@
+ #define LIBTORRENT_COMMON_H
+
+ #include <inttypes.h>
++#include <cstddef>
+
+ struct sockaddr;
+