summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-05-10 11:12:09 +0000
committerMike Frysinger <vapier@gentoo.org>2008-05-10 11:12:09 +0000
commitc3bbd1bf1faecedf88b6ff87b15f5ca20470180b (patch)
tree15ef6519f2432c21d00b4515a82067345ed49cb5 /games-server/monopd/files
parentfix bug # (diff)
downloadgentoo-2-c3bbd1bf1faecedf88b6ff87b15f5ca20470180b.tar.gz
gentoo-2-c3bbd1bf1faecedf88b6ff87b15f5ca20470180b.tar.bz2
gentoo-2-c3bbd1bf1faecedf88b6ff87b15f5ca20470180b.zip
Add fix from Debian for building with gcc-4.3 #218833 by Peter Alfredsen.
(Portage version: 2.2_pre5)
Diffstat (limited to 'games-server/monopd/files')
-rw-r--r--games-server/monopd/files/monopd-0.9.3-gcc43.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/games-server/monopd/files/monopd-0.9.3-gcc43.patch b/games-server/monopd/files/monopd-0.9.3-gcc43.patch
new file mode 100644
index 000000000000..553e17c81870
--- /dev/null
+++ b/games-server/monopd/files/monopd-0.9.3-gcc43.patch
@@ -0,0 +1,68 @@
+http://bugs.gentoo.org/218833
+
+fix building with gcc-4.3
+
+--- monopd-0.9.3/src/cardgroup.cpp
++++ monopd-0.9.3/src/cardgroup.cpp
+@@ -14,7 +14,7 @@
+ // the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ // Boston, MA 02111-1307, USA.
+
+-#include <algo.h>
++#include <algorithm>
+
+ #include "card.h"
+ #include "cardgroup.h"
+--- monopd-0.9.3/src/estategroup.cpp
++++ monopd-0.9.3/src/estategroup.cpp
+@@ -14,6 +14,7 @@
+ // the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ // Boston, MA 02111-1307, USA.
+
++#include <stdlib.h>
+ #include <iostream>
+
+ #include <math++/nodes.h>
+--- monopd-0.9.3/src/game.cpp
++++ monopd-0.9.3/src/game.cpp
+@@ -20,7 +20,8 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <syslog.h>
+-#include <algo.h> // libstdc++ from the gcc 2.95 has no #include <algo> yet :(
++#include <string.h>
++#include <algorithm> // libstdc++ from the gcc 2.95 has no #include <algo> yet :(
+
+ #include <map>
+ #include <string>
+--- monopd-0.9.3/src/main.cpp
++++ monopd-0.9.3/src/main.cpp
+@@ -18,6 +18,7 @@
+ #include <signal.h>
+ #include <syslog.h>
+ #include <unistd.h>
++#include <stdlib.h>
+
+ #include <iostream>
+ #include <string>
+--- monopd-0.9.3/src/player.cpp
++++ monopd-0.9.3/src/player.cpp
+@@ -18,6 +18,7 @@
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ #include <string>
+
+--- monopd-0.9.3/src/server.cpp
++++ monopd-0.9.3/src/server.cpp
+@@ -25,6 +25,8 @@
+ #include <netinet/in.h>
+ #include <syslog.h>
+ #include <unistd.h>
++#include <stdlib.h>
++#include <string.h>
+
+ #include <string>
+