[package] add gcc-4.4.0 fixes from #5118
[openwrt/svn-archive/archive.git] / net / rtorrent / patches / 100-fix-includes-for-gcc44.patch
1 diff -urN rtorrent-0.8.4.orig/src/command_download.cc rtorrent-0.8.4/src/command_download.cc
2 --- rtorrent-0.8.4.orig/src/command_download.cc 2009-05-01 11:44:18.928024917 +0000
3 +++ rtorrent-0.8.4/src/command_download.cc 2009-05-01 11:52:00.204784723 +0000
4 @@ -38,6 +38,7 @@
5
6 #include <functional>
7 #include <unistd.h>
8 +#include <cstdio>
9 #include <rak/file_stat.h>
10 #include <rak/error_number.h>
11 #include <rak/path.h>
12 diff -urN rtorrent-0.8.4.orig/src/command_events.cc rtorrent-0.8.4/src/command_events.cc
13 --- rtorrent-0.8.4.orig/src/command_events.cc 2009-05-01 11:44:18.956025193 +0000
14 +++ rtorrent-0.8.4/src/command_events.cc 2009-05-01 11:52:53.176878174 +0000
15 @@ -37,6 +37,7 @@
16 #include "config.h"
17
18 #include <functional>
19 +#include <cstdio>
20 #include <rak/file_stat.h>
21 #include <rak/path.h>
22 #include <rak/string_manip.h>
23 diff -urN rtorrent-0.8.4.orig/src/command_network.cc rtorrent-0.8.4/src/command_network.cc
24 --- rtorrent-0.8.4.orig/src/command_network.cc 2009-05-01 11:44:18.954025149 +0000
25 +++ rtorrent-0.8.4/src/command_network.cc 2009-05-01 11:53:38.894790846 +0000
26 @@ -37,6 +37,7 @@
27 #include "config.h"
28
29 #include <functional>
30 +#include <cstdio>
31 #include <rak/address_info.h>
32 #include <rak/path.h>
33 #include <torrent/connection_manager.h>
34 diff -urN rtorrent-0.8.4.orig/src/display/utils.cc rtorrent-0.8.4/src/display/utils.cc
35 --- rtorrent-0.8.4.orig/src/display/utils.cc 2009-05-01 11:44:18.958025168 +0000
36 +++ rtorrent-0.8.4/src/display/utils.cc 2009-05-01 11:46:00.280024662 +0000
37 @@ -37,6 +37,7 @@
38 #include "config.h"
39
40 #include <cstring>
41 +#include <cstdio>
42 #include <sstream>
43 #include <iomanip>
44 #include <rak/socket_address.h>
45 diff -urN rtorrent-0.8.4.orig/src/display/utils.h rtorrent-0.8.4/src/display/utils.h
46 --- rtorrent-0.8.4.orig/src/display/utils.h 2009-05-01 11:44:18.958025168 +0000
47 +++ rtorrent-0.8.4/src/display/utils.h 2009-05-01 11:54:46.317784833 +0000
48 @@ -38,6 +38,7 @@
49 #define RTORRENT_DISPLAY_UTILS_H
50
51 #include <ctime>
52 +#include <cstdio>
53 #include <string>
54
55 namespace core {
56 diff -urN rtorrent-0.8.4.orig/src/rpc/parse.cc rtorrent-0.8.4/src/rpc/parse.cc
57 --- rtorrent-0.8.4.orig/src/rpc/parse.cc 2009-05-01 11:44:18.955025625 +0000
58 +++ rtorrent-0.8.4/src/rpc/parse.cc 2009-05-01 11:48:42.406775254 +0000
59 @@ -37,6 +37,7 @@
60 #include "config.h"
61
62 #include <cstring>
63 +#include <cstdio>
64 #include <locale>
65 #include <rak/path.h>
66 #include <torrent/exceptions.h>
67 diff -urN rtorrent-0.8.4.orig/src/rpc/scgi_task.cc rtorrent-0.8.4/src/rpc/scgi_task.cc
68 --- rtorrent-0.8.4.orig/src/rpc/scgi_task.cc 2009-05-01 11:44:18.955025625 +0000
69 +++ rtorrent-0.8.4/src/rpc/scgi_task.cc 2009-05-01 11:49:52.988070476 +0000
70 @@ -37,6 +37,7 @@
71 #include "config.h"
72
73 #include <rak/error_number.h>
74 +#include <cstdio>
75 #include <sys/types.h>
76 #include <sys/socket.h>
77 #include <torrent/exceptions.h>
78 diff -urN rtorrent-0.8.4.orig/src/utils/lockfile.cc rtorrent-0.8.4/src/utils/lockfile.cc
79 --- rtorrent-0.8.4.orig/src/utils/lockfile.cc 2009-05-01 11:44:18.956025193 +0000
80 +++ rtorrent-0.8.4/src/utils/lockfile.cc 2009-05-01 11:50:57.780779606 +0000
81 @@ -40,6 +40,7 @@
82 #include <cctype>
83 #include <cerrno>
84 #include <cstring>
85 +#include <cstdio>
86 #include <sstream>
87 #include <fcntl.h>
88 #include <signal.h>