summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2008-05-01 10:30:08 +0000
committerTristan Heaven <nyhm@gentoo.org>2008-05-01 10:30:08 +0000
commit779df789d3d0bd898865996e08b0b87b95cca69c (patch)
treef53bb89f6dbd66ebf2ad399db9500e33ac348849 /games-mud/crystal/files
parentalpha/ia64/sparc/x86 stable (diff)
downloadgentoo-2-779df789d3d0bd898865996e08b0b87b95cca69c.tar.gz
gentoo-2-779df789d3d0bd898865996e08b0b87b95cca69c.tar.bz2
gentoo-2-779df789d3d0bd898865996e08b0b87b95cca69c.zip
Fix building with gcc-4.3
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'games-mud/crystal/files')
-rw-r--r--games-mud/crystal/files/crystal-0.2.2-64bit.patch11
-rw-r--r--games-mud/crystal/files/crystal-0.2.2-gcc43.patch11
2 files changed, 22 insertions, 0 deletions
diff --git a/games-mud/crystal/files/crystal-0.2.2-64bit.patch b/games-mud/crystal/files/crystal-0.2.2-64bit.patch
new file mode 100644
index 000000000000..0d82356b7c24
--- /dev/null
+++ b/games-mud/crystal/files/crystal-0.2.2-64bit.patch
@@ -0,0 +1,11 @@
+--- Socket.cc
++++ Socket.cc
+@@ -212,7 +212,7 @@
+ int Socket::read(char *data, int size) {
+ if (pending) {
+ int opt = 0;
+- size_t osz = sizeof(int);
++ socklen_t osz = sizeof(int);
+ getsockopt(fd, SOL_SOCKET, SO_ERROR, &opt, &osz);
+ pending = 0;
+ if (opt != 0)
diff --git a/games-mud/crystal/files/crystal-0.2.2-gcc43.patch b/games-mud/crystal/files/crystal-0.2.2-gcc43.patch
new file mode 100644
index 000000000000..40623c5c22b3
--- /dev/null
+++ b/games-mud/crystal/files/crystal-0.2.2-gcc43.patch
@@ -0,0 +1,11 @@
+--- common.h
++++ common.h
+@@ -3,6 +3,8 @@
+
+ #include <string>
+ #include <stdio.h>
++#include <cstring>
++#include <cstdlib>
+ #include <curses.h>
+ #include <termios.h>
+ #include <sys/ioctl.h>