summaryrefslogtreecommitdiffstats
path: root/games/quake2-ctf
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-01-10 22:22:30 +0000
committeralepulver <alepulver@FreeBSD.org>2007-01-10 22:22:30 +0000
commit994a3b4311634aaf9c4a30f4c204ab4fa5004f61 (patch)
tree356cf36a225467a39e90e8b1312590a1437e1433 /games/quake2-ctf
parentb5b7d4b65a76957b231edd70c2b3c92e797852cc (diff)
downloadFreeBSD-ports-994a3b4311634aaf9c4a30f4c204ab4fa5004f61.zip
FreeBSD-ports-994a3b4311634aaf9c4a30f4c204ab4fa5004f61.tar.gz
- Fix building with GCC 4.x.
Reported by: pointyhat
Diffstat (limited to 'games/quake2-ctf')
-rw-r--r--games/quake2-ctf/files/patch-g_items.c15
-rw-r--r--games/quake2-ctf/files/patch-p_weapon.c11
2 files changed, 26 insertions, 0 deletions
diff --git a/games/quake2-ctf/files/patch-g_items.c b/games/quake2-ctf/files/patch-g_items.c
new file mode 100644
index 0000000..7f0a724
--- /dev/null
+++ b/games/quake2-ctf/files/patch-g_items.c
@@ -0,0 +1,15 @@
+--- ./g_items.c.orig Wed Mar 4 18:51:16 1998
++++ ./g_items.c Wed Jan 10 19:04:52 2007
+@@ -21,9 +21,9 @@
+ gitem_armor_t combatarmor_info = { 50, 100, .60, .30, ARMOR_COMBAT};
+ gitem_armor_t bodyarmor_info = {100, 200, .80, .60, ARMOR_BODY};
+
+-static int jacket_armor_index;
+-static int combat_armor_index;
+-static int body_armor_index;
++int jacket_armor_index;
++int combat_armor_index;
++int body_armor_index;
+ static int power_screen_index;
+ static int power_shield_index;
+
diff --git a/games/quake2-ctf/files/patch-p_weapon.c b/games/quake2-ctf/files/patch-p_weapon.c
new file mode 100644
index 0000000..ed0f716
--- /dev/null
+++ b/games/quake2-ctf/files/patch-p_weapon.c
@@ -0,0 +1,11 @@
+--- ./p_weapon.c.orig Wed Mar 4 18:51:16 1998
++++ ./p_weapon.c Wed Jan 10 19:05:28 2007
+@@ -4,7 +4,7 @@
+ #include "m_player.h"
+
+
+-static qboolean is_quad;
++qboolean is_quad;
+ static byte is_silenced;
+
+
OpenPOWER on IntegriCloud