summaryrefslogtreecommitdiff
path: root/recipes/tapioca/libjingle-tapioca-0.3.10/gcc-4.5-compilation-fixes.patch
blob: 57db0934dbef8dc2423c7c8325afe0f0b8146957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
Index: libjingle-0.3.10/talk/base/asynctcpsocket.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/asynctcpsocket.cc	2006-09-01 04:31:52.000000000 -0700
+++ libjingle-0.3.10/talk/base/asynctcpsocket.cc	2010-09-15 12:57:34.485210001 -0700
@@ -45,6 +45,7 @@ extern "C" {
 }
 #endif // POSIX
 
+#include <cstring>
 namespace cricket {
 
 const size_t MAX_PACKET_SIZE = 64 * 1024;
Index: libjingle-0.3.10/talk/base/bytebuffer.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/bytebuffer.cc	2006-09-01 04:31:53.000000000 -0700
+++ libjingle-0.3.10/talk/base/bytebuffer.cc	2010-09-15 12:52:40.005210002 -0700
@@ -30,6 +30,7 @@
 #include "talk/base/byteorder.h"
 #include <algorithm>
 #include <cassert>
+#include <cstring>
 
 #if defined(_MSC_VER) && _MSC_VER < 1300
 namespace std {
Index: libjingle-0.3.10/talk/base/host.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/host.cc	2006-09-01 04:31:53.000000000 -0700
+++ libjingle-0.3.10/talk/base/host.cc	2010-09-15 13:08:51.945210000 -0700
@@ -33,6 +33,7 @@
 #include <iostream>
 #include <cassert>
 #include <errno.h>
+#include <cstdlib>
 
 #if defined(_MSC_VER) && _MSC_VER < 1300
 namespace std {
Index: libjingle-0.3.10/talk/base/logging.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/logging.cc	2006-09-01 04:31:52.000000000 -0700
+++ libjingle-0.3.10/talk/base/logging.cc	2010-09-15 13:14:46.475210002 -0700
@@ -33,6 +33,8 @@
 
 #include <iostream>
 #include <iomanip>
+#include <cstring>
+#include <cstdio>
 
 #include "talk/base/logging.h"
 #include "talk/base/stream.h"
Index: libjingle-0.3.10/talk/base/messagequeue.h
===================================================================
--- libjingle-0.3.10.orig/talk/base/messagequeue.h	2010-09-15 12:48:43.000000000 -0700
+++ libjingle-0.3.10/talk/base/messagequeue.h	2010-09-15 12:50:06.225210002 -0700
@@ -35,6 +35,7 @@
 #include <vector>
 #include <queue>
 #include <algorithm>
+#include <cstring>
 
 namespace cricket {
 
Index: libjingle-0.3.10/talk/base/physicalsocketserver.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/physicalsocketserver.cc	2006-09-01 04:31:52.000000000 -0700
+++ libjingle-0.3.10/talk/base/physicalsocketserver.cc	2010-09-15 13:05:45.445210001 -0700
@@ -37,6 +37,7 @@ extern "C" {
 #include <fcntl.h>
 #include <sys/time.h>
 #include <unistd.h>
+#include <string.h>
 }
 #endif
 
@@ -50,6 +51,8 @@ extern "C" {
 
 #ifdef __linux 
 #define IP_MTU 14 // Until this is integrated from linux/in.h to netinet/in.h
+#include <cstdio>
+#include <algorithm>
 #endif  // __linux
 
 #ifdef WIN32
@@ -61,7 +64,6 @@ extern "C" {
 
 #include <algorithm>
 #include <iostream>
-
 class WinsockInitializer {
 public:
   WinsockInitializer() {
Index: libjingle-0.3.10/talk/base/protocolinfo.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/protocolinfo.cc	2006-09-01 04:31:53.000000000 -0700
+++ libjingle-0.3.10/talk/base/protocolinfo.cc	2010-09-15 13:11:47.815210002 -0700
@@ -28,7 +28,7 @@
  */
 
 #include "talk/base/protocolinfo.h"
-
+#include <cstring>
 namespace cricket {
 
 static const char * const PROTO_NAMES[PROTO_LAST+1] = { "udp", "tcp", "ssltcp" };
Index: libjingle-0.3.10/talk/base/socketadapters.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/socketadapters.cc	2006-09-01 04:31:53.000000000 -0700
+++ libjingle-0.3.10/talk/base/socketadapters.cc	2010-09-15 13:02:10.245210000 -0700
@@ -42,6 +42,7 @@
 #endif
 
 #include <cassert>
+#include <cstring>
 
 #include "talk/base/base64.h"
 #include "talk/base/basicdefs.h"
Index: libjingle-0.3.10/talk/base/stream.cc
===================================================================
--- libjingle-0.3.10.orig/talk/base/stream.cc	2006-09-01 04:31:53.000000000 -0700
+++ libjingle-0.3.10/talk/base/stream.cc	2010-09-15 13:13:51.255210002 -0700
@@ -29,6 +29,8 @@
 #include <sys/stat.h>
 #include <errno.h>
 #include <string>
+#include <cstdio>
+#include <cstring>
 #include "talk/base/basictypes.h"
 #include "talk/base/common.h"
 #include "talk/base/stream.h"
Index: libjingle-0.3.10/talk/base/stringutils.h
===================================================================
--- libjingle-0.3.10.orig/talk/base/stringutils.h	2006-09-01 04:31:52.000000000 -0700
+++ libjingle-0.3.10/talk/base/stringutils.h	2010-09-15 13:09:40.695210000 -0700
@@ -36,6 +36,7 @@
 #endif  // WIN32
 
 #include <string>
+#include <cstring>
 
 ///////////////////////////////////////////////////////////////////////////////
 // Rename a bunch of common string functions so they are consistent across
Index: libjingle-0.3.10/talk/base/xmpppassword.h
===================================================================
--- libjingle-0.3.10.orig/talk/base/xmpppassword.h	2006-09-01 04:31:52.000000000 -0700
+++ libjingle-0.3.10/talk/base/xmpppassword.h	2010-09-15 13:10:33.105210000 -0700
@@ -30,7 +30,7 @@
 
 #include "talk/base/linked_ptr.h"
 #include "talk/base/scoped_ptr.h"
-
+#include <cstring>
 namespace buzz {
 
 class XmppPasswordImpl {
Index: libjingle-0.3.10/talk/p2p/base/pseudotcp.cc
===================================================================
--- libjingle-0.3.10.orig/talk/p2p/base/pseudotcp.cc	2006-09-01 04:31:51.000000000 -0700
+++ libjingle-0.3.10/talk/p2p/base/pseudotcp.cc	2010-09-15 13:17:33.135210000 -0700
@@ -52,6 +52,8 @@ extern "C" {
 }
 #endif // POSIX
 
+#include <cstring>
+#include <cstdlib>
 namespace cricket {
 
 //////////////////////////////////////////////////////////////////////
Index: libjingle-0.3.10/talk/p2p/base/stun.cc
===================================================================
--- libjingle-0.3.10.orig/talk/p2p/base/stun.cc	2006-09-01 04:31:51.000000000 -0700
+++ libjingle-0.3.10/talk/p2p/base/stun.cc	2010-09-15 13:16:30.845210000 -0700
@@ -29,6 +29,7 @@
 #include "talk/p2p/base/stun.h"
 #include <iostream>
 #include <cassert>
+#include <cstring>
 
 #if defined(_MSC_VER) && _MSC_VER < 1300
 namespace std {
Index: libjingle-0.3.10/talk/p2p/base/stunserver.cc
===================================================================
--- libjingle-0.3.10.orig/talk/p2p/base/stunserver.cc	2006-09-01 04:31:51.000000000 -0700
+++ libjingle-0.3.10/talk/p2p/base/stunserver.cc	2010-09-15 13:18:10.045210001 -0700
@@ -28,6 +28,7 @@
 #include "talk/base/bytebuffer.h"
 #include "talk/p2p/base/stunserver.h"
 #include <iostream>
+#include <cstring>
 
 #ifdef POSIX
 extern "C" {
Index: libjingle-0.3.10/talk/xmpp/xmpplogintask.cc
===================================================================
--- libjingle-0.3.10.orig/talk/xmpp/xmpplogintask.cc	2006-09-01 04:31:52.000000000 -0700
+++ libjingle-0.3.10/talk/xmpp/xmpplogintask.cc	2010-09-15 13:15:44.185209999 -0700
@@ -35,6 +35,7 @@
 
 #include <iostream>
 #include <string>
+#include <cstdio>
 #include <vector>
 #ifdef SSL_USE_OPENSSL
 #include <openssl/sha.h>