summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-02-16 20:09:03 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-02-16 20:09:03 +0000
commit29dc0ee7f3e75d1279441bbbec6937162716fdfe (patch)
treeaebf12ed48b5ed7fcc52ad2d3705d54d3ece0655 /dev-games/cel/files
parentmark -amd64; bug 167001 (diff)
downloadgentoo-2-29dc0ee7f3e75d1279441bbbec6937162716fdfe.tar.gz
gentoo-2-29dc0ee7f3e75d1279441bbbec6937162716fdfe.tar.bz2
gentoo-2-29dc0ee7f3e75d1279441bbbec6937162716fdfe.zip
Fixing compilation for amd64
(Portage version: 2.1.1-r2)
Diffstat (limited to 'dev-games/cel/files')
-rw-r--r--dev-games/cel/files/cel-1.0-amd64.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-games/cel/files/cel-1.0-amd64.patch b/dev-games/cel/files/cel-1.0-amd64.patch
new file mode 100644
index 000000000000..b909a4183cbc
--- /dev/null
+++ b/dev-games/cel/files/cel-1.0-amd64.patch
@@ -0,0 +1,25 @@
+--- plugins/network/tcp/tcpgameclient.cpp.old 2007-02-16 20:03:01.000000000 +0100
++++ plugins/network/tcp/tcpgameclient.cpp 2007-02-16 20:04:06.000000000 +0100
+@@ -341,7 +341,9 @@
+ packet->Read (temp_game_info.game_name);
+ packet->Read (temp_game_info.hostname);
+ packet->Read (temp_game_info.port_nb);
+- packet->Read (temp_game_info.max_players);
++ uint32 max_players;
++ packet->Read (max_players);
++ temp_game_info.max_players = max_players;
+ packet->Read (temp_game_info.custom_data);
+ if (!game->IsServerAvailable ())
+ game->game_info = temp_game_info;
+--- plugins/network/tcp/tcpgameserver.cpp.old 2007-02-16 20:03:12.000000000 +0100
++++ plugins/network/tcp/tcpgameserver.cpp 2007-02-16 20:08:18.000000000 +0100
+@@ -450,7 +450,8 @@
+ answer_packet->Write (game->game_info.game_name);
+ answer_packet->Write (game->game_info.hostname);
+ answer_packet->Write (game->game_info.port_nb);
+- answer_packet->Write (game->game_info.max_players);
++ uint32 max_players = game->game_info.max_players;
++ answer_packet->Write (max_players);
+ answer_packet->Write (game->game_info.custom_data);
+
+ // send packet