summaryrefslogtreecommitdiff
path: root/games-rpg/openglad/files
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/openglad/files')
-rw-r--r--games-rpg/openglad/files/0.98-gladpack.c.patch13
-rw-r--r--games-rpg/openglad/files/openglad-0.98-gcc43.patch11
-rw-r--r--games-rpg/openglad/files/openglad-0.98-ovfl.patch11
3 files changed, 35 insertions, 0 deletions
diff --git a/games-rpg/openglad/files/0.98-gladpack.c.patch b/games-rpg/openglad/files/0.98-gladpack.c.patch
new file mode 100644
index 000000000000..b4f5de9e3995
--- /dev/null
+++ b/games-rpg/openglad/files/0.98-gladpack.c.patch
@@ -0,0 +1,13 @@
+--- openglad-0.98/util/gladpack.c 2002-09-14 18:37:50.000000000 +1000
++++ openglad-0.98/util/gladpack.c 2003-12-06 12:42:31.393812945 +1100
+@@ -9,8 +9,8 @@
+
+ int main(int argc, char **argv)
+ {
+- if (argc > 1 && !strcmp(argv[1], "p")) pack(argc, argv);
+- else if (argc > 1 && !strcmp(argv[1], "u")) unpack(argc, argv);
++ if (argc > 1 && !strcmp(argv[1], "p")) return pack(argc, argv);
++ else if (argc > 1 && !strcmp(argv[1], "u")) return unpack(argc, argv);
+ else
+ {
+ printf("Usage: gladpack (p|u) ...\n");
diff --git a/games-rpg/openglad/files/openglad-0.98-gcc43.patch b/games-rpg/openglad/files/openglad-0.98-gcc43.patch
new file mode 100644
index 000000000000..9f46ce8e5b95
--- /dev/null
+++ b/games-rpg/openglad/files/openglad-0.98-gcc43.patch
@@ -0,0 +1,11 @@
+--- a/src/parser.cpp
++++ b/src/parser.cpp
+@@ -23,6 +23,8 @@
+ #include <iostream>
+ #include <fstream>
+ #include <string>
++#include <cstring>
++#include <cstdlib>
+ #include "parser.h"
+
+ using namespace std;
diff --git a/games-rpg/openglad/files/openglad-0.98-ovfl.patch b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
new file mode 100644
index 000000000000..8ec89d22559d
--- /dev/null
+++ b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
@@ -0,0 +1,11 @@
+--- a/src/screen.cpp 2011-07-23 21:35:34.385063301 +0200
++++ b/src/screen.cpp 2011-07-23 21:35:59.948063312 +0200
+@@ -2383,7 +2383,7 @@
+ short listsize;
+ short i;
+ walker * new_guy;
+- char newgrid[12] = "grid.pix"; // default grid
++ char newgrid[13] = "grid.pix"; // default grid
+ char new_scen_type; // read the scenario type
+ char oneline[80];
+ char numlines, tempwidth;