aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2004-08-21 16:36:09 +0800
committermarkus <markus@FreeBSD.org>2004-08-21 16:36:09 +0800
commit1d0c5412a9bf8dfe2fafb4c47dc6b429f6e5225f (patch)
tree4bb4123d6e4ed1ed1f49018e2859fe0fb33d8b4a /games
parent8af936b4ccffe8ba51fc43920208293740b0153e (diff)
downloadfreebsd-ports-gnome-1d0c5412a9bf8dfe2fafb4c47dc6b429f6e5225f.tar.gz
freebsd-ports-gnome-1d0c5412a9bf8dfe2fafb4c47dc6b429f6e5225f.tar.zst
freebsd-ports-gnome-1d0c5412a9bf8dfe2fafb4c47dc6b429f6e5225f.zip
Fix build with gcc 3.4
Diffstat (limited to 'games')
-rw-r--r--games/knights-kde4/files/patch-core.cpp26
-rw-r--r--games/knights/files/patch-core.cpp26
2 files changed, 52 insertions, 0 deletions
diff --git a/games/knights-kde4/files/patch-core.cpp b/games/knights-kde4/files/patch-core.cpp
new file mode 100644
index 000000000000..0fe783deb901
--- /dev/null
+++ b/games/knights-kde4/files/patch-core.cpp
@@ -0,0 +1,26 @@
+--- knights/core.cpp.orig Sat Aug 21 10:14:24 2004
++++ knights/core.cpp Sat Aug 21 10:28:14 2004
+@@ -90,7 +90,7 @@
+ else
+ {
+ /* Use an existing internetIO */
+- (io_base*)internetioPtr = myIOMap.find(Null);
++ internetioPtr = (io_internet*)myIOMap.find(Null);
+ if( internetioPtr == NULL )
+ {
+ kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl;
+@@ -114,12 +114,12 @@
+ }
+ else
+ {
+- (io_base*)internetioPtr = myIOMap.find(ID);
++ internetioPtr = (io_internet*)myIOMap.find(ID);
+ if( internetioPtr == NULL )
+ {
+ /* no io mapped to the ID yet, use the internetio */
+ /* Use an existing internetIO */
+- (io_base*)internetioPtr = myIOMap.find(Null);
++ internetioPtr = (io_internet*)myIOMap.find(Null);
+ if( internetioPtr == NULL )
+ {
+ kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl;
diff --git a/games/knights/files/patch-core.cpp b/games/knights/files/patch-core.cpp
new file mode 100644
index 000000000000..0fe783deb901
--- /dev/null
+++ b/games/knights/files/patch-core.cpp
@@ -0,0 +1,26 @@
+--- knights/core.cpp.orig Sat Aug 21 10:14:24 2004
++++ knights/core.cpp Sat Aug 21 10:28:14 2004
+@@ -90,7 +90,7 @@
+ else
+ {
+ /* Use an existing internetIO */
+- (io_base*)internetioPtr = myIOMap.find(Null);
++ internetioPtr = (io_internet*)myIOMap.find(Null);
+ if( internetioPtr == NULL )
+ {
+ kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl;
+@@ -114,12 +114,12 @@
+ }
+ else
+ {
+- (io_base*)internetioPtr = myIOMap.find(ID);
++ internetioPtr = (io_internet*)myIOMap.find(ID);
+ if( internetioPtr == NULL )
+ {
+ /* no io mapped to the ID yet, use the internetio */
+ /* Use an existing internetIO */
+- (io_base*)internetioPtr = myIOMap.find(Null);
++ internetioPtr = (io_internet*)myIOMap.find(Null);
+ if( internetioPtr == NULL )
+ {
+ kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl;