updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / atol / gcc4.3.patch
blobc1604e648327edeee9a796f3d6afc9082102cbcb
1 diff -ruN atol-0.7.3.orig/plugins/src/ArjLib/ArjLib.cpp atol-0.7.3.new/plugins/src/ArjLib/ArjLib.cpp
2 --- atol-0.7.3.orig/plugins/src/ArjLib/ArjLib.cpp 2008-06-19 23:27:47.000000000 +0200
3 +++ atol-0.7.3.new/plugins/src/ArjLib/ArjLib.cpp 2008-06-19 23:29:03.000000000 +0200
4 @@ -9,13 +9,14 @@
5 #include "../plugin_int.h"
6 #include "ArchiveInfo.h"
7 #include <string>
8 +#include <cstring>
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <time.h>
13 -#ifndef _WIN32
14 - #include <ctype.h>
15 -#endif
17 +#ifndef _WIN32
18 + #include <ctype.h>
19 +#endif
21 //global data
22 COpenArchivesList g_ArchList;
23 diff -ruN atol-0.7.3.orig/plugins/src/Bz2Lib/Bz2Lib.cpp atol-0.7.3.new/plugins/src/Bz2Lib/Bz2Lib.cpp
24 --- atol-0.7.3.orig/plugins/src/Bz2Lib/Bz2Lib.cpp 2008-06-19 23:27:47.000000000 +0200
25 +++ atol-0.7.3.new/plugins/src/Bz2Lib/Bz2Lib.cpp 2008-06-19 23:33:38.000000000 +0200
26 @@ -3,6 +3,7 @@
28 #include "ArchiveInfo.h"
29 #include <string>
30 +#include <cstring>
31 #include <sys/types.h>
32 #include <sys/stat.h>
33 #include <time.h>
34 diff -ruN atol-0.7.3.orig/plugins/src/Bz2Lib/bz2.cpp atol-0.7.3.new/plugins/src/Bz2Lib/bz2.cpp
35 --- atol-0.7.3.orig/plugins/src/Bz2Lib/bz2.cpp 2008-06-19 23:27:47.000000000 +0200
36 +++ atol-0.7.3.new/plugins/src/Bz2Lib/bz2.cpp 2008-06-19 23:35:20.000000000 +0200
37 @@ -7,6 +7,7 @@
38 ////////////////////////////////////////////////////////////////////////////
40 #include "bz2.h"
41 +#include <cstring>
43 CBZ2::CBZ2()
45 diff -ruN atol-0.7.3.orig/plugins/src/GzLib/GzLib.cpp atol-0.7.3.new/plugins/src/GzLib/GzLib.cpp
46 --- atol-0.7.3.orig/plugins/src/GzLib/GzLib.cpp 2008-06-19 23:27:47.000000000 +0200
47 +++ atol-0.7.3.new/plugins/src/GzLib/GzLib.cpp 2008-06-19 23:37:56.000000000 +0200
48 @@ -9,6 +9,7 @@
49 #include "../plugin_int.h"
50 #include "ArchiveInfo.h"
51 #include <string>
52 +#include <cstring>
53 #include <sys/types.h>
54 #include <sys/stat.h>
55 #include <time.h>
56 diff -ruN atol-0.7.3.orig/plugins/src/GzLib/gzip.cpp atol-0.7.3.new/plugins/src/GzLib/gzip.cpp
57 --- atol-0.7.3.orig/plugins/src/GzLib/gzip.cpp 2008-06-19 23:27:47.000000000 +0200
58 +++ atol-0.7.3.new/plugins/src/GzLib/gzip.cpp 2008-06-19 23:39:37.000000000 +0200
59 @@ -38,6 +38,7 @@
60 #include "gzip.h"
61 #include <limits.h>
62 #include <time.h>
63 +#include <cstring>
65 //////////////////////////////////////////////////////////////////////
66 // Construction/Destruction
67 diff -ruN atol-0.7.3.orig/plugins/src/LstLib/EntryTree.cpp atol-0.7.3.new/plugins/src/LstLib/EntryTree.cpp
68 --- atol-0.7.3.orig/plugins/src/LstLib/EntryTree.cpp 2008-06-19 23:27:47.000000000 +0200
69 +++ atol-0.7.3.new/plugins/src/LstLib/EntryTree.cpp 2008-06-19 23:42:41.000000000 +0200
70 @@ -1,3 +1,4 @@
71 +#include <cstring>
72 ////////////////////////////////////////////////////////////////////////////
73 // Atol file manager project <http://atol.sf.net>
75 diff -ruN atol-0.7.3.orig/plugins/src/LstLib/EntryTree.h atol-0.7.3.new/plugins/src/LstLib/EntryTree.h
76 --- atol-0.7.3.orig/plugins/src/LstLib/EntryTree.h 2008-06-19 23:27:47.000000000 +0200
77 +++ atol-0.7.3.new/plugins/src/LstLib/EntryTree.h 2008-06-19 23:44:26.000000000 +0200
78 @@ -14,6 +14,7 @@
79 #endif // _MSC_VER > 1000
81 #include <string>
82 +#include <cstring>
83 #include <vector>
84 #include <algorithm>
86 diff -ruN atol-0.7.3.orig/plugins/src/TarLib/LibTar.cpp atol-0.7.3.new/plugins/src/TarLib/LibTar.cpp
87 --- atol-0.7.3.orig/plugins/src/TarLib/LibTar.cpp 2008-06-19 23:27:47.000000000 +0200
88 +++ atol-0.7.3.new/plugins/src/TarLib/LibTar.cpp 2008-06-19 23:47:12.000000000 +0200
89 @@ -6,6 +6,7 @@
90 // File:
91 ////////////////////////////////////////////////////////////////////////////
93 +#include <cstring>
94 #include "LibTar.h"
95 #ifdef _WIN32
96 #include <time.h>
97 diff -ruN atol-0.7.3.orig/plugins/src/TarLib/TarLib.cpp atol-0.7.3.new/plugins/src/TarLib/TarLib.cpp
98 --- atol-0.7.3.orig/plugins/src/TarLib/TarLib.cpp 2008-06-19 23:27:47.000000000 +0200
99 +++ atol-0.7.3.new/plugins/src/TarLib/TarLib.cpp 2008-06-19 23:45:32.000000000 +0200
100 @@ -9,6 +9,7 @@
101 #include "../plugin_int.h"
102 #include "ArchiveInfo.h"
103 #include <string>
104 +#include <cstring>
105 #include <sys/types.h>
106 #include <sys/stat.h>
107 #include <time.h>
108 diff -ruN atol-0.7.3.orig/plugins/src/ZLib/ZLib.cpp atol-0.7.3.new/plugins/src/ZLib/ZLib.cpp
109 --- atol-0.7.3.orig/plugins/src/ZLib/ZLib.cpp 2008-06-19 23:27:47.000000000 +0200
110 +++ atol-0.7.3.new/plugins/src/ZLib/ZLib.cpp 2008-06-20 00:02:49.000000000 +0200
111 @@ -3,6 +3,7 @@
113 #include "ArchiveInfo.h"
114 #include <string>
115 +#include <cstring>
116 #include <sys/types.h>
117 #include <sys/stat.h>
118 #include <time.h>
119 diff -ruN atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipArchive.cpp atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipArchive.cpp
120 --- atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipArchive.cpp 2008-06-19 23:27:47.000000000 +0200
121 +++ atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipArchive.cpp 2008-06-19 23:54:46.000000000 +0200
122 @@ -10,7 +10,8 @@
123 // For the licensing details see the file License.txt
124 ////////////////////////////////////////////////////////////////////////////////
127 +#include <cstring>
128 +#include <climits>
129 #include "stdafx.h"
130 #include "ZipArchive.h"
131 // #include "ZipPathComponent.h"
132 diff -ruN atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipCentralDir.cpp atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipCentralDir.cpp
133 --- atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipCentralDir.cpp 2008-06-19 23:27:47.000000000 +0200
134 +++ atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipCentralDir.cpp 2008-06-19 23:55:53.000000000 +0200
135 @@ -10,7 +10,7 @@
136 // For the licensing details see the file License.txt
137 ////////////////////////////////////////////////////////////////////////////////
140 +#include <cstring>
141 #include "stdafx.h"
142 #include "ZipCentralDir.h"
143 #include "ZipArchive.h"
144 diff -ruN atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipCompatibility.cpp atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipCompatibility.cpp
145 --- atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipCompatibility.cpp 2008-06-19 23:27:47.000000000 +0200
146 +++ atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipCompatibility.cpp 2008-06-19 23:57:05.000000000 +0200
147 @@ -10,6 +10,7 @@
148 // For the licensing details see the file License.txt
149 ////////////////////////////////////////////////////////////////////////////////
151 +#include <cstring>
152 #include "stdafx.h"
153 #include "ZipCompatibility.h"
154 #include "ZipPlatform.h"
155 diff -ruN atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipException.cpp atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipException.cpp
156 --- atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipException.cpp 2008-06-19 23:27:47.000000000 +0200
157 +++ atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipException.cpp 2008-06-19 23:58:11.000000000 +0200
158 @@ -10,6 +10,7 @@
159 // For the licensing details see the file License.txt
160 ////////////////////////////////////////////////////////////////////////////////
162 +#include <cstring>
163 #include "stdafx.h"
164 #include "ZipException.h"
165 #include <errno.h>
166 diff -ruN atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipFileHeader.cpp atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipFileHeader.cpp
167 --- atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/ZipFileHeader.cpp 2008-06-19 23:27:47.000000000 +0200
168 +++ atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/ZipFileHeader.cpp 2008-06-20 00:01:27.000000000 +0200
169 @@ -10,7 +10,7 @@
170 // For the licensing details see the file License.txt
171 ////////////////////////////////////////////////////////////////////////////////
174 +#include <climits>
175 #include "stdafx.h"
176 #include "ZipFileHeader.h"
177 #include "ZipAutoBuffer.h"
178 diff -ruN atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/stl/ZipString.h atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/stl/ZipString.h
179 --- atol-0.7.3.orig/plugins/src/ZipLib/ZipArchive/stl/ZipString.h 2008-06-19 23:27:47.000000000 +0200
180 +++ atol-0.7.3.new/plugins/src/ZipLib/ZipArchive/stl/ZipString.h 2008-06-20 00:00:15.000000000 +0200
181 @@ -10,6 +10,7 @@
182 // For the licensing details see the file License.txt
183 ////////////////////////////////////////////////////////////////////////////////
185 +#include <cstring>
186 #ifndef __ZIPSTRING_H__
187 #define __ZIPSTRING_H__
188 #include "stdafx.h"
189 diff -ruN atol-0.7.3.orig/src/FileSearchDlg.cpp atol-0.7.3.new/src/FileSearchDlg.cpp
190 --- atol-0.7.3.orig/src/FileSearchDlg.cpp 2008-06-19 23:27:47.000000000 +0200
191 +++ atol-0.7.3.new/src/FileSearchDlg.cpp 2008-06-20 00:17:49.000000000 +0200
192 @@ -6,6 +6,7 @@
193 // File: Dialog to define options for a file search operation
194 ////////////////////////////////////////////////////////////////////////////
196 +#include <cstdlib>
197 #include "support.h"
198 #include "FileSearchDlg.h"
199 #include "core/PathName.h"
200 diff -ruN atol-0.7.3.orig/src/PackFilesDlg.cpp atol-0.7.3.new/src/PackFilesDlg.cpp
201 --- atol-0.7.3.orig/src/PackFilesDlg.cpp 2008-06-19 23:27:47.000000000 +0200
202 +++ atol-0.7.3.new/src/PackFilesDlg.cpp 2008-06-20 00:19:20.000000000 +0200
203 @@ -6,6 +6,7 @@
204 // File: Start dialog for pack operation, defines archive type, name and additional properties
205 ////////////////////////////////////////////////////////////////////////////
207 +#include <cstring>
208 #include "PackFilesDlg.h"
209 #include "support.h"
210 #include "core/String.h"
211 diff -ruN atol-0.7.3.orig/src/SiteManagerDlg.cpp atol-0.7.3.new/src/SiteManagerDlg.cpp
212 --- atol-0.7.3.orig/src/SiteManagerDlg.cpp 2008-06-19 23:27:47.000000000 +0200
213 +++ atol-0.7.3.new/src/SiteManagerDlg.cpp 2008-06-20 00:26:00.000000000 +0200
214 @@ -6,6 +6,7 @@
215 // File: Dialog to define and start remote connections (FTP, SFTP)
216 ////////////////////////////////////////////////////////////////////////////
218 +#include <cstdlib>
219 #include "SiteManagerDlg.h"
220 #include "support.h"
221 #include "core/opcodes.h"
222 diff -ruN atol-0.7.3.orig/src/core/ConnectionInfo.h atol-0.7.3.new/src/core/ConnectionInfo.h
223 --- atol-0.7.3.orig/src/core/ConnectionInfo.h 2008-06-19 23:27:47.000000000 +0200
224 +++ atol-0.7.3.new/src/core/ConnectionInfo.h 2008-06-20 00:04:48.000000000 +0200
225 @@ -6,6 +6,7 @@
226 // File: TOFIX
227 ////////////////////////////////////////////////////////////////////////////
229 +#include <cstring>
230 #ifndef CONNECTIONINFO_H
231 #define CONNECTIONINFO_H
233 diff -ruN atol-0.7.3.orig/src/core/GuiLanguage.cpp atol-0.7.3.new/src/core/GuiLanguage.cpp
234 --- atol-0.7.3.orig/src/core/GuiLanguage.cpp 2008-06-19 23:27:47.000000000 +0200
235 +++ atol-0.7.3.new/src/core/GuiLanguage.cpp 2008-06-20 00:07:05.000000000 +0200
236 @@ -7,6 +7,7 @@
237 ////////////////////////////////////////////////////////////////////////////
239 #include "GuiLanguage.h"
240 +#include <cstring>
241 #include <algorithm>
242 #include <gtk/gtk.h>
243 #ifdef ENABLE_NLS
244 diff -ruN atol-0.7.3.orig/src/core/PathName.cpp atol-0.7.3.new/src/core/PathName.cpp
245 --- atol-0.7.3.orig/src/core/PathName.cpp 2008-06-19 23:27:47.000000000 +0200
246 +++ atol-0.7.3.new/src/core/PathName.cpp 2008-06-20 00:08:49.000000000 +0200
247 @@ -6,6 +6,7 @@
248 // File: PathName class implementation
249 ////////////////////////////////////////////////////////////////////////////
251 +#include <cstring>
252 #include "PathName.h"
253 #include "System.h"
254 #include <sys/stat.h>
255 diff -ruN atol-0.7.3.orig/src/core/PluginManager.cpp atol-0.7.3.new/src/core/PluginManager.cpp
256 --- atol-0.7.3.orig/src/core/PluginManager.cpp 2008-06-19 23:27:47.000000000 +0200
257 +++ atol-0.7.3.new/src/core/PluginManager.cpp 2008-06-20 00:15:51.000000000 +0200
258 @@ -6,6 +6,7 @@
259 // File: Handles working with archiver plugin .DLL/.so objects
260 ////////////////////////////////////////////////////////////////////////////
262 +#include <cstring>
263 #include "PluginManager.h"
264 #include "PathName.h"
265 #include "System.h"
266 diff -ruN atol-0.7.3.orig/src/core/ProxyFtp.cpp atol-0.7.3.new/src/core/ProxyFtp.cpp
267 --- atol-0.7.3.orig/src/core/ProxyFtp.cpp 2008-06-19 23:27:47.000000000 +0200
268 +++ atol-0.7.3.new/src/core/ProxyFtp.cpp 2008-06-20 00:32:20.000000000 +0200
269 @@ -6,6 +6,7 @@
270 // File: TOFIX
271 ////////////////////////////////////////////////////////////////////////////
273 +#include <cstring>
274 #include "ProxyFtp.h"
275 #include "_ftp/xSocket.h"
277 diff -ruN atol-0.7.3.orig/src/core/ProxySocks.cpp atol-0.7.3.new/src/core/ProxySocks.cpp
278 --- atol-0.7.3.orig/src/core/ProxySocks.cpp 2008-06-19 23:27:47.000000000 +0200
279 +++ atol-0.7.3.new/src/core/ProxySocks.cpp 2008-06-20 00:34:01.000000000 +0200
280 @@ -6,6 +6,7 @@
281 // File: TOFIX
282 ////////////////////////////////////////////////////////////////////////////
284 +#include <cstring>
285 #include "ProxySocks.h"
286 #include "_ftp/xSocket.h"
287 #ifdef _WIN32
288 diff -ruN atol-0.7.3.orig/src/core/String.cpp atol-0.7.3.new/src/core/String.cpp
289 --- atol-0.7.3.orig/src/core/String.cpp 2008-06-19 23:27:47.000000000 +0200
290 +++ atol-0.7.3.new/src/core/String.cpp 2008-06-20 00:10:21.000000000 +0200
291 @@ -6,6 +6,7 @@
292 // File: Implements portable string class
293 ////////////////////////////////////////////////////////////////////////////
295 +#include <cstring>
296 #include "String.h"
297 #include <stdio.h>
298 #include <stdarg.h>
299 diff -ruN atol-0.7.3.orig/src/core/System.cpp atol-0.7.3.new/src/core/System.cpp
300 --- atol-0.7.3.orig/src/core/System.cpp 2008-06-19 23:27:47.000000000 +0200
301 +++ atol-0.7.3.new/src/core/System.cpp 2008-06-20 00:21:29.000000000 +0200
302 @@ -6,6 +6,7 @@
303 // File: Platform independent part of System utility class implementation.
304 ////////////////////////////////////////////////////////////////////////////
306 +#include <cstring>
307 #include "System.h"
308 #include "util.h"
309 #include "debug.h"
310 diff -ruN atol-0.7.3.orig/src/core/VfsListing.h atol-0.7.3.new/src/core/VfsListing.h
311 --- atol-0.7.3.orig/src/core/VfsListing.h 2008-06-19 23:27:47.000000000 +0200
312 +++ atol-0.7.3.new/src/core/VfsListing.h 2008-06-20 00:12:02.000000000 +0200
313 @@ -6,6 +6,7 @@
314 // File: VfsListing is an collection of virtual file system items (VfsItem)
315 ////////////////////////////////////////////////////////////////////////////
317 +#include <cstring>
318 #ifndef VFSLISTING_H
319 #define VFSLISTING_H
321 diff -ruN atol-0.7.3.orig/src/core/_ftp/FtpListParser.cpp atol-0.7.3.new/src/core/_ftp/FtpListParser.cpp
322 --- atol-0.7.3.orig/src/core/_ftp/FtpListParser.cpp 2008-06-19 23:27:47.000000000 +0200
323 +++ atol-0.7.3.new/src/core/_ftp/FtpListParser.cpp 2008-06-20 00:27:55.000000000 +0200
324 @@ -6,6 +6,7 @@
325 // File: TOFIX
326 ////////////////////////////////////////////////////////////////////////////
328 +#include <cstdlib>
329 #include "FtpListParser.h"
330 #include <time.h>
331 #include <ctype.h>
332 diff -ruN atol-0.7.3.orig/src/core/_ftp/xSocket.cpp atol-0.7.3.new/src/core/_ftp/xSocket.cpp
333 --- atol-0.7.3.orig/src/core/_ftp/xSocket.cpp 2008-06-19 23:27:47.000000000 +0200
334 +++ atol-0.7.3.new/src/core/_ftp/xSocket.cpp 2008-06-20 00:30:42.000000000 +0200
335 @@ -6,6 +6,7 @@
336 // File: xSocket class handles TCP/IP socket operations
337 ////////////////////////////////////////////////////////////////////////////
339 +#include <cstring>
340 #include "xSocket.h"
341 #include "../debug.h"
343 diff -ruN atol-0.7.3.orig/src/core/_unx/SystemImpl.cpp atol-0.7.3.new/src/core/_unx/SystemImpl.cpp
344 --- atol-0.7.3.orig/src/core/_unx/SystemImpl.cpp 2008-06-19 23:27:47.000000000 +0200
345 +++ atol-0.7.3.new/src/core/_unx/SystemImpl.cpp 2008-06-20 00:24:12.000000000 +0200
346 @@ -6,10 +6,11 @@
347 // File: System utility class - Unix/Gnome implementation.
348 ////////////////////////////////////////////////////////////////////////////
350 -#include <vector>
351 -#include <string>
352 +#include <vector>
353 +#include <string>
354 +#include <cstring>
355 #include <unistd.h>
356 -#include <dirent.h>
357 +#include <dirent.h>
358 #include <limits.h>
359 #include <errno.h>
360 #include <sys/types.h>
361 diff -ruN atol-0.7.3.orig/src/core/_util/Base64.cpp atol-0.7.3.new/src/core/_util/Base64.cpp
362 --- atol-0.7.3.orig/src/core/_util/Base64.cpp 2008-06-19 23:27:47.000000000 +0200
363 +++ atol-0.7.3.new/src/core/_util/Base64.cpp 2008-06-20 00:35:53.000000000 +0200
364 @@ -9,6 +9,7 @@
365 // to the 4byte border (when encoding).
366 //////////////////////////////////////////////////////////////////////
368 +#include <cstring>
369 #include "Base64.h"
370 #include "../debug.h"
372 diff -ruN atol-0.7.3.orig/src/core/util.cpp atol-0.7.3.new/src/core/util.cpp
373 --- atol-0.7.3.orig/src/core/util.cpp 2008-06-19 23:27:47.000000000 +0200
374 +++ atol-0.7.3.new/src/core/util.cpp 2008-06-20 00:13:48.000000000 +0200
375 @@ -6,6 +6,7 @@
376 // File: wxutil implementation
377 ////////////////////////////////////////////////////////////////////////////
379 +#include <cstring>
380 #include "util.h"
381 #include <sys/stat.h>
382 #include "PathName.h"