summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2006-01-03 02:19:43 +0000
committerMark Loeser <halcy0n@gentoo.org>2006-01-03 02:19:43 +0000
commit1cebab17c95acbd86524e635b25a568b0be93efe (patch)
tree196cb5e8cf07725a3a2f61b46e2babf79d23d883 /games-board/eboard/files
parentFix qmake path error from bug #103589 (diff)
downloadgentoo-2-1cebab17c95acbd86524e635b25a568b0be93efe.tar.gz
gentoo-2-1cebab17c95acbd86524e635b25a568b0be93efe.tar.bz2
gentoo-2-1cebab17c95acbd86524e635b25a568b0be93efe.zip
Fix compilation with gcc-4 on 64 bit platforms. Patch by Dario Birtic <dariobirtic AT gmx DOT net>; bug #112131
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'games-board/eboard/files')
-rw-r--r--games-board/eboard/files/eboard-0.9.5-gcc4.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/games-board/eboard/files/eboard-0.9.5-gcc4.patch b/games-board/eboard/files/eboard-0.9.5-gcc4.patch
new file mode 100644
index 000000000000..b761591f19aa
--- /dev/null
+++ b/games-board/eboard/files/eboard-0.9.5-gcc4.patch
@@ -0,0 +1,44 @@
+--- eboard-0.9.5/board.cc.orig 2005-11-11 02:18:41.000000000 +0100
++++ eboard-0.9.5/board.cc 2005-11-11 02:19:20.000000000 +0100
+@@ -1059,8 +1059,8 @@
+ cerr.setf(ios::hex,ios::basefield);
+ cerr.setf(ios::showbase);
+
+- cerr << "[board " << ((unsigned int)this) << "] ";
+- cerr << "game=[" << ((unsigned int)mygame) << "] ";
++ cerr << "[board " << ((unsigned long)this) << "] ";
++ cerr << "game=[" << ((unsigned long)mygame) << "] ";
+
+ cerr.setf(ios::dec,ios::basefield);
+ cerr << "paneid=" << getPageId() << endl;
+--- eboard-0.9.5/chess.cc.orig 2005-11-11 02:19:45.000000000 +0100
++++ eboard-0.9.5/chess.cc 2005-11-11 02:20:02.000000000 +0100
+@@ -641,7 +641,7 @@
+ cerr.setf(ios::hex,ios::basefield);
+ cerr.setf(ios::showbase);
+
+- cerr << "[game " << ((unsigned int)this) << "] ";
++ cerr << "[game " << ((unsigned long)this) << "] ";
+
+ cerr.setf(ios::dec,ios::basefield);
+
+@@ -655,7 +655,7 @@
+ cerr.setf(ios::hex,ios::basefield);
+ cerr.setf(ios::showbase);
+
+- cerr << "board=[" << ((unsigned int)myboard) << "]" << endl;
++ cerr << "board=[" << ((unsigned long)myboard) << "]" << endl;
+ }
+
+ char * ChessGame::getPlayerString(int index) {
+--- eboard-0.9.5/notebook.cc.orig 2005-11-11 02:20:41.000000000 +0100
++++ eboard-0.9.5/notebook.cc 2005-11-11 02:20:54.000000000 +0100
+@@ -127,7 +127,7 @@
+ void Page::dump() {
+ cerr.setf(ios::hex,ios::basefield);
+ cerr.setf(ios::showbase);
+- cerr << "[page " << ((unsigned int)this) << "] ";
++ cerr << "[page " << ((unsigned long)this) << "] ";
+ cerr.setf(ios::dec,ios::basefield);
+ cerr << "pageid=" << number << " ";
+ cerr << "title=" << title << " ";