summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-puzzle/xye/files/xye-0.12.0-gcc47.patch')
-rw-r--r--games-puzzle/xye/files/xye-0.12.0-gcc47.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-puzzle/xye/files/xye-0.12.0-gcc47.patch b/games-puzzle/xye/files/xye-0.12.0-gcc47.patch
new file mode 100644
index 000000000000..f638968dd404
--- /dev/null
+++ b/games-puzzle/xye/files/xye-0.12.0-gcc47.patch
@@ -0,0 +1,22 @@
+--- src/editorsave.cpp.old 2012-10-17 09:47:46.413566575 +0200
++++ src/editorsave.cpp 2012-10-17 09:48:17.314366174 +0200
+@@ -642,7 +642,8 @@
+ file << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
+ file << "<pack>\n<name>"<< stripXML(editorboard::filetitle) <<"</name><author>"<< stripXML(editorboard::author) <<"</author>\n<description>"<< stripXML(editorboard::description) <<"</description>\n";
+
+- for (int i=first; i<editorboard::CountLevels(); i++) {
++ int i;
++ for (i=first; i<editorboard::CountLevels(); i++) {
+ editorboard::LoadLevelNumber(board, i);
+ file << "\n<level>\n";
+ file << "<title>"<< stripXML(board->title) <<"</title>\n";
+--- src/gen.cpp.old 2012-10-17 09:41:40.825540267 +0200
++++ src/gen.cpp 2012-10-17 09:41:57.087387319 +0200
+@@ -21,6 +21,7 @@
+ #include<cstdio>
+ #include<iostream>
+ #include<fstream>
++#include <unistd.h>
+
+ const float F_RAND_MAX = (float)(RAND_MAX);
+