1 |
vapier 08/04/20 09:19:44 |
2 |
|
3 |
Added: btanks-0.7.5800-gcc43.patch |
4 |
Log: |
5 |
Fix from Debian for building with gcc-4.3 #217944 by Peter Alfredsen. |
6 |
(Portage version: 2.2_pre5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-action/btanks/files/btanks-0.7.5800-gcc43.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/btanks/files/btanks-0.7.5800-gcc43.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/btanks/files/btanks-0.7.5800-gcc43.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: btanks-0.7.5800-gcc43.patch |
15 |
=================================================================== |
16 |
sniped from Debian to fix building with gcc-4.3 |
17 |
|
18 |
http://bugs.gentoo.org/217944 |
19 |
|
20 |
--- btanks-0.7.5800/mrt/udp_socket.cpp |
21 |
+++ btanks-0.7.5800/mrt/udp_socket.cpp |
22 |
@@ -22,6 +22,7 @@ |
23 |
# endif |
24 |
#endif |
25 |
|
26 |
+#include <cstring> |
27 |
|
28 |
using namespace mrt; |
29 |
|
30 |
--- btanks-0.7.5800/mrt/sys_socket.cpp |
31 |
+++ btanks-0.7.5800/mrt/sys_socket.cpp |
32 |
@@ -27,6 +27,7 @@ |
33 |
# include <unistd.h> |
34 |
#endif |
35 |
|
36 |
+#include <cstring> |
37 |
|
38 |
using namespace mrt; |
39 |
|
40 |
--- btanks-0.7.5800/mrt/lang.cpp |
41 |
+++ btanks-0.7.5800/mrt/lang.cpp |
42 |
@@ -8,6 +8,9 @@ |
43 |
#include "lang.h" |
44 |
#include "logger.h" |
45 |
|
46 |
+#include <cstdlib> |
47 |
+#include <cstring> |
48 |
+ |
49 |
const std::string mrt::getLanguageCode() { |
50 |
#ifdef WIN32 |
51 |
LANGID lang_id = GetUserDefaultLangID(); |
52 |
--- btanks-0.7.5800/mrt/serializator.cpp |
53 |
+++ btanks-0.7.5800/mrt/serializator.cpp |
54 |
@@ -31,6 +31,8 @@ |
55 |
#include <limits.h> |
56 |
#include "exception.h" |
57 |
|
58 |
+#include <cstring> |
59 |
+ |
60 |
#ifdef WIN32 |
61 |
# ifndef uint32_t |
62 |
# define uint32_t unsigned __int32 |
63 |
--- btanks-0.7.5800/menu/menu_config.cpp |
64 |
+++ btanks-0.7.5800/menu/menu_config.cpp |
65 |
@@ -24,6 +24,8 @@ |
66 |
#include "mrt/b64.h" |
67 |
#include "config.h" |
68 |
|
69 |
+#include <cstring> |
70 |
+ |
71 |
IMPLEMENT_SINGLETON(MenuConfig, IMenuConfig); |
72 |
|
73 |
void SlotConfig::serialize(mrt::Serializator &s) const { |
74 |
--- btanks-0.7.5800/src/i18n.cpp |
75 |
+++ btanks-0.7.5800/src/i18n.cpp |
76 |
@@ -20,6 +20,8 @@ |
77 |
#include "mrt/exception.h" |
78 |
#include <assert.h> |
79 |
|
80 |
+#include <cstring> |
81 |
+ |
82 |
IMPLEMENT_SINGLETON(I18n, II18n); |
83 |
|
84 |
bool lessnocase::operator()(const std::string& s1, const std::string& s2) const { |
85 |
--- btanks-0.7.5800/src/var.cpp |
86 |
+++ btanks-0.7.5800/src/var.cpp |
87 |
@@ -21,6 +21,8 @@ |
88 |
#include "mrt/serializator.h" |
89 |
#include <assert.h> |
90 |
|
91 |
+#include <cstdlib> |
92 |
+ |
93 |
void Var::serialize(mrt::Serializator &s) const { |
94 |
if (type.empty()) |
95 |
throw_ex(("cannot serialize empty variable")); |
96 |
--- btanks-0.7.5800/objects/trooper.cpp |
97 |
+++ btanks-0.7.5800/objects/trooper.cpp |
98 |
@@ -24,6 +24,8 @@ |
99 |
#include "config.h" |
100 |
#include "trooper.h" |
101 |
|
102 |
+#include <cstring> |
103 |
+ |
104 |
void Trooper::getImpassabilityPenalty(const float impassability, float &base, float &base_value, float &penalty) const { |
105 |
if (impassability > 0.2f) { |
106 |
base_value = 0.2f; |
107 |
|
108 |
|
109 |
|
110 |
-- |
111 |
gentoo-commits@l.g.o mailing list |