Dash:
[t2.git] / package / network / curlpp / hotfix-gcc43.patch
blob115973e9991769a886810c4fb8f63006490690ec
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../curlpp/gcc43.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- curlpp-0.7.2/examples/example14.cpp.vanilla 2009-01-29 12:49:39.000000000 +0100
18 +++ curlpp-0.7.2/examples/example14.cpp 2009-01-29 12:49:55.000000000 +0100
19 @@ -21,6 +21,8 @@
20 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 +#include <stdlib.h>
25 #include <iostream>
27 #include <curlpp/cURLpp.hpp>
28 @@ -59,7 +61,8 @@
29 requests.add(&request2);
31 /* we start some action by calling perform right away */
32 - while(!requests.perform(&nbLeft));
33 + while(!requests.perform(&nbLeft))
34 + ;
36 while(nbLeft) {
37 struct timeval timeout;
38 @@ -94,7 +97,8 @@
39 default:
40 /* one or more of curl's file descriptors say there's data to read
41 or write */
42 - while(!requests.perform(&nbLeft));
43 + while(!requests.perform(&nbLeft))
44 + ;
45 break;
48 --- curlpp-0.7.2/examples/example11.cpp.vanilla 2009-01-29 12:48:12.000000000 +0100
49 +++ curlpp-0.7.2/examples/example11.cpp 2009-01-29 12:48:36.000000000 +0100
50 @@ -23,6 +23,7 @@
52 #include <stdlib.h>
53 #include <errno.h>
54 +#include <string.h>
56 #include <curlpp/cURLpp.hpp>
57 #include <curlpp/Easy.hpp>
58 --- curlpp-0.7.2/examples/example13.cpp.vanilla 2009-01-29 12:48:49.000000000 +0100
59 +++ curlpp-0.7.2/examples/example13.cpp 2009-01-29 12:49:28.000000000 +0100
60 @@ -21,6 +21,8 @@
61 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64 +#include <stdlib.h>
66 #include <iostream>
68 #include <curlpp/cURLpp.hpp>
69 @@ -59,7 +61,8 @@
70 requests.add(&request2);
72 /* we start some action by calling perform right away */
73 - while(!requests.perform(&nbLeft));
74 + while(!requests.perform(&nbLeft))
75 + ;
77 while(nbLeft) {
78 struct timeval timeout;
79 @@ -92,7 +95,8 @@
80 case 0:
81 default:
82 /* timeout or readable/writable sockets */
83 - while(!requests.perform(&nbLeft));
84 + while(!requests.perform(&nbLeft))
85 + ;
86 break;
89 --- curlpp-0.7.2/examples/example10.cpp.vanilla 2009-01-29 12:47:52.000000000 +0100
90 +++ curlpp-0.7.2/examples/example10.cpp 2009-01-29 12:48:01.000000000 +0100
91 @@ -21,6 +21,7 @@
92 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
95 +#include <stdlib.h>
96 #include <stdio.h>
97 #include <string.h>
99 --- curlpp-0.7.2/examples/example21.cpp.vanilla 2009-01-29 12:50:36.000000000 +0100
100 +++ curlpp-0.7.2/examples/example21.cpp 2009-01-29 12:50:52.000000000 +0100
101 @@ -25,6 +25,7 @@
103 #include <stdlib.h>
104 #include <stdio.h>
105 +#include <string.h>
107 #include <curlpp/cURLpp.hpp>
108 #include <curlpp/Easy.hpp>
109 --- curlpp-0.7.2/examples/example06.cpp.vanilla 2009-01-29 12:47:08.000000000 +0100
110 +++ curlpp-0.7.2/examples/example06.cpp 2009-01-29 12:47:17.000000000 +0100
111 @@ -22,6 +22,7 @@
114 #include <stdlib.h>
115 +#include <string.h>
117 #include <curlpp/cURLpp.hpp>
118 #include <curlpp/Easy.hpp>
119 --- curlpp-0.7.2/examples/example02.cpp.vanilla 2009-01-29 12:46:33.000000000 +0100
120 +++ curlpp-0.7.2/examples/example02.cpp 2009-01-29 12:46:42.000000000 +0100
121 @@ -23,6 +23,7 @@
123 #include <stdlib.h>
124 #include <stdio.h>
125 +#include <string.h>
127 #include <curlpp/cURLpp.hpp>
128 #include <curlpp/Easy.hpp>
129 --- curlpp-0.7.2/examples/example05.cpp.vanilla 2009-01-29 12:46:54.000000000 +0100
130 +++ curlpp-0.7.2/examples/example05.cpp 2009-01-29 12:47:02.000000000 +0100
131 @@ -22,6 +22,7 @@
134 #include <stdlib.h>
135 +#include <string.h>
137 #include <curlpp/cURLpp.hpp>
138 #include <curlpp/Easy.hpp>
139 --- curlpp-0.7.2/curlpp/cURLpp.cpp.vanilla 2009-01-29 12:45:46.000000000 +0100
140 +++ curlpp-0.7.2/curlpp/cURLpp.cpp 2009-01-29 12:46:04.000000000 +0100
141 @@ -2,6 +2,8 @@
142 #include "cURLpp.hpp"
143 #include "Exception.hpp"
145 +#include <stdlib.h>
147 void cURLpp::initialize( long flags )
149 CURLcode code;
150 --- curlpp-0.7.2/curlpp/CurlHandle.cpp.vanilla 2009-01-29 12:45:23.000000000 +0100
151 +++ curlpp-0.7.2/curlpp/CurlHandle.cpp 2009-01-29 12:45:31.000000000 +0100
152 @@ -21,6 +21,8 @@
153 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
156 +#include <string.h>
158 #include <string>
159 #include <iostream>
161 --- curlpp-0.7.2/utilspp/singleton/LifetimeWithLongevity.inl.vanilla 2009-01-29 12:45:05.000000000 +0100
162 +++ curlpp-0.7.2/utilspp/singleton/LifetimeWithLongevity.inl 2009-01-29 12:45:10.000000000 +0100
163 @@ -1,3 +1,5 @@
164 +#include <algorithm>
166 template< typename T, typename TDestroyer >
167 void
168 utilspp::setLongevity( T *obj, unsigned int longevity, TDestroyer d )
169 --- curlpp-0.7.2/utilspp/singleton/LifetimeLibrary.cpp.vanilla 2009-01-29 12:41:35.000000000 +0100
170 +++ curlpp-0.7.2/utilspp/singleton/LifetimeLibrary.cpp 2009-01-29 12:43:07.000000000 +0100
171 @@ -1,6 +1,9 @@
172 #include "SingletonHolder.hpp"
173 #include "LifetimeLibrary.hpp"
175 +#include <algorithm>
178 utilspp::LifetimeLibraryImpl::LifetimeLibraryImpl()
180 mTrackerArray( NULL ),