From: | "Tristan Heaven (nyhm)" <nyhm@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-mud/crystal/files: crystal-0.2.2-64bit.patch crystal-0.2.2-gcc43.patch |
Date: | Thu, 01 May 2008 10:30:11 |
Message-Id: | E1JrW3F-0000lS-2v@stork.gentoo.org |
1 | nyhm 08/05/01 10:30:09 |
2 | |
3 | Added: crystal-0.2.2-64bit.patch crystal-0.2.2-gcc43.patch |
4 | Log: |
5 | Fix building with gcc-4.3 |
6 | (Portage version: 2.1.5_rc6) |
7 | |
8 | Revision Changes Path |
9 | 1.1 games-mud/crystal/files/crystal-0.2.2-64bit.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-mud/crystal/files/crystal-0.2.2-64bit.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-mud/crystal/files/crystal-0.2.2-64bit.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: crystal-0.2.2-64bit.patch |
15 | =================================================================== |
16 | --- Socket.cc |
17 | +++ Socket.cc |
18 | @@ -212,7 +212,7 @@ |
19 | int Socket::read(char *data, int size) { |
20 | if (pending) { |
21 | int opt = 0; |
22 | - size_t osz = sizeof(int); |
23 | + socklen_t osz = sizeof(int); |
24 | getsockopt(fd, SOL_SOCKET, SO_ERROR, &opt, &osz); |
25 | pending = 0; |
26 | if (opt != 0) |
27 | |
28 | |
29 | |
30 | 1.1 games-mud/crystal/files/crystal-0.2.2-gcc43.patch |
31 | |
32 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-mud/crystal/files/crystal-0.2.2-gcc43.patch?rev=1.1&view=markup |
33 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-mud/crystal/files/crystal-0.2.2-gcc43.patch?rev=1.1&content-type=text/plain |
34 | |
35 | Index: crystal-0.2.2-gcc43.patch |
36 | =================================================================== |
37 | --- common.h |
38 | +++ common.h |
39 | @@ -3,6 +3,8 @@ |
40 | |
41 | #include <string> |
42 | #include <stdio.h> |
43 | +#include <cstring> |
44 | +#include <cstdlib> |
45 | #include <curses.h> |
46 | #include <termios.h> |
47 | #include <sys/ioctl.h> |
48 | |
49 | |
50 | |
51 | -- |
52 | gentoo-commits@l.g.o mailing list |