1 |
nyhm 08/04/30 16:46:32 |
2 |
|
3 |
Added: rafkill-1.2.3-gcc43.patch |
4 |
Log: |
5 |
Patch to fix building with gcc-4.3 from Peter Alfredsen, bug #219427 |
6 |
(Portage version: 2.1.5_rc6) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-action/rafkill/files/rafkill-1.2.3-gcc43.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/rafkill/files/rafkill-1.2.3-gcc43.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/rafkill/files/rafkill-1.2.3-gcc43.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: rafkill-1.2.3-gcc43.patch |
15 |
=================================================================== |
16 |
Index: rafkill-1.2.2/src/guns/gun_findgun.cpp |
17 |
=================================================================== |
18 |
--- rafkill-1.2.2.orig/src/guns/gun_findgun.cpp 2006-05-07 15:50:04.000000000 +0100 |
19 |
+++ rafkill-1.2.2/src/guns/gun_findgun.cpp 2008-04-09 22:54:54.000000000 +0100 |
20 |
@@ -5,6 +5,7 @@ |
21 |
#include "weaponobj.h" |
22 |
#include "hulls/hull_weapon_machine.h" |
23 |
#include "spaceobj.h" |
24 |
+#include <cstdlib> |
25 |
#include <vector> |
26 |
#include <math.h> |
27 |
|
28 |
Index: rafkill-1.2.2/src/guns/gun_machine_circle.cpp |
29 |
=================================================================== |
30 |
--- rafkill-1.2.2.orig/src/guns/gun_machine_circle.cpp 2006-05-02 02:50:40.000000000 +0100 |
31 |
+++ rafkill-1.2.2/src/guns/gun_machine_circle.cpp 2008-04-09 22:54:54.000000000 +0100 |
32 |
@@ -3,6 +3,7 @@ |
33 |
#include "weaponobj.h" |
34 |
#include "hulls/hull_weapon_machine.h" |
35 |
#include "trigtable.h" |
36 |
+#include <cstdlib> |
37 |
|
38 |
// #define d_circle_move (2.9*8) |
39 |
|
40 |
Index: rafkill-1.2.2/src/guns/gun_saber.cpp |
41 |
=================================================================== |
42 |
--- rafkill-1.2.2.orig/src/guns/gun_saber.cpp 2006-05-02 02:52:23.000000000 +0100 |
43 |
+++ rafkill-1.2.2/src/guns/gun_saber.cpp 2008-04-09 22:54:54.000000000 +0100 |
44 |
@@ -5,6 +5,7 @@ |
45 |
#include "weapons/weapon_beam.h" |
46 |
#include "spaceobj.h" |
47 |
#include "ebox.h" |
48 |
+#include <cstdlib> |
49 |
#include <vector> |
50 |
|
51 |
using namespace std; |
52 |
Index: rafkill-1.2.2/src/menu.cpp |
53 |
=================================================================== |
54 |
--- rafkill-1.2.2.orig/src/menu.cpp 2008-04-09 22:53:35.000000000 +0100 |
55 |
+++ rafkill-1.2.2/src/menu.cpp 2008-04-09 22:54:54.000000000 +0100 |
56 |
@@ -1,4 +1,5 @@ |
57 |
#include <stdio.h> |
58 |
+#include <cstdlib> |
59 |
#include "defs.h" |
60 |
#include "menu.h" |
61 |
#include "loadsave.h" |
62 |
Index: rafkill-1.2.2/src/weapons/weapon_follow.cpp |
63 |
=================================================================== |
64 |
--- rafkill-1.2.2.orig/src/weapons/weapon_follow.cpp 2006-03-25 23:29:05.000000000 +0000 |
65 |
+++ rafkill-1.2.2/src/weapons/weapon_follow.cpp 2008-04-09 22:54:54.000000000 +0100 |
66 |
@@ -3,6 +3,7 @@ |
67 |
#include "weapon_follow.h" |
68 |
#include "hulls/hull_weapon_follow.h" |
69 |
#include "spaceobj.h" |
70 |
+#include <cstdlib> |
71 |
#include <vector> |
72 |
|
73 |
using namespace std; |
74 |
Index: rafkill-1.2.2/src/hulls/hull_weapon_beam.cpp |
75 |
=================================================================== |
76 |
--- rafkill-1.2.2.orig/src/hulls/hull_weapon_beam.cpp 2006-05-02 03:12:50.000000000 +0100 |
77 |
+++ rafkill-1.2.2/src/hulls/hull_weapon_beam.cpp 2008-04-09 22:54:54.000000000 +0100 |
78 |
@@ -4,6 +4,7 @@ |
79 |
#include "hull_weapon_beam.h" |
80 |
#include "trigtable.h" |
81 |
#include "ebox.h" |
82 |
+#include <cstdlib> |
83 |
|
84 |
#ifndef debug |
85 |
#include <iostream> |
86 |
Index: rafkill-1.2.2/src/drawer.cpp |
87 |
=================================================================== |
88 |
--- rafkill-1.2.2.orig/src/drawer.cpp 2008-04-09 22:55:06.000000000 +0100 |
89 |
+++ rafkill-1.2.2/src/drawer.cpp 2008-04-09 22:55:55.000000000 +0100 |
90 |
@@ -11,6 +11,7 @@ |
91 |
#include "trigtable.h" |
92 |
#include "pck.h" |
93 |
#include <iostream> |
94 |
+#include <cstring> |
95 |
|
96 |
/* TODO: |
97 |
* Add weapon icons to HUD |
98 |
Index: rafkill-1.2.2/src/loadsave.cpp |
99 |
=================================================================== |
100 |
--- rafkill-1.2.2.orig/src/loadsave.cpp 2008-04-09 22:55:19.000000000 +0100 |
101 |
+++ rafkill-1.2.2/src/loadsave.cpp 2008-04-09 22:55:55.000000000 +0100 |
102 |
@@ -7,6 +7,7 @@ |
103 |
#include "spaceobj.h" |
104 |
#include "strings.h" |
105 |
#include <string> |
106 |
+#include <cstring> |
107 |
#include <vector> |
108 |
#include "gunobj.h" |
109 |
#include "hull.h" |
110 |
Index: rafkill-1.2.2/src/system.cpp |
111 |
=================================================================== |
112 |
--- rafkill-1.2.2.orig/src/system.cpp 2008-04-09 22:55:29.000000000 +0100 |
113 |
+++ rafkill-1.2.2/src/system.cpp 2008-04-09 22:55:55.000000000 +0100 |
114 |
@@ -1,6 +1,7 @@ |
115 |
#include "system.h" |
116 |
#include <strings.h> |
117 |
#include <string> |
118 |
+#include <cstring> |
119 |
|
120 |
#ifdef WINDOWS |
121 |
static const char * type(){ |
122 |
|
123 |
|
124 |
|
125 |
-- |
126 |
gentoo-commits@l.g.o mailing list |