From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-pda/coldsync/files: coldsync-2.2.5-toolchain.patch |
Date: | Thu, 31 Mar 2011 05:49:32 |
Message-Id: | 20110331054922.C9FB320054@flycatcher.gentoo.org |
1 | ssuominen 11/03/31 05:49:22 |
2 | |
3 | Added: coldsync-2.2.5-toolchain.patch |
4 | Log: |
5 | Fix building with GCC 4.3+ and merge -broken-c++.diff and -gcc3.diff here. Keyword for ~amd64. Don't use strict aliasing. Respect CC and CXX wrt #243694 by Diego Elio Pettenò. Use perl-module.eclass wrt #297204 by Diego Elio Pettenò. |
6 | |
7 | (Portage version: 2.2.0_alpha29/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-pda/coldsync/files/coldsync-2.2.5-toolchain.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/coldsync/files/coldsync-2.2.5-toolchain.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/coldsync/files/coldsync-2.2.5-toolchain.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: coldsync-2.2.5-toolchain.patch |
16 | =================================================================== |
17 | --- src/symboltable.cc |
18 | +++ src/symboltable.cc |
19 | @@ -11,8 +11,11 @@ |
20 | #include <string> |
21 | #include <map> |
22 | #include <cstdlib> // For malloc() and friends |
23 | +#include <cstring> // For strlen() and friends |
24 | #include "symboltable.h" |
25 | |
26 | +using namespace std; |
27 | + |
28 | static char *make_c_string(const string &s); |
29 | |
30 | map<string,string> table; /* XXX - Is this going to cause problems on |
31 | --- src/symboltable.h |
32 | +++ src/symboltable.h |
33 | @@ -26,7 +26,7 @@ |
34 | /* Initialize the symbol table based on the |
35 | * arguments. */ |
36 | #ifdef __cplusplus |
37 | -}; |
38 | +} |
39 | #endif /* __cplusplus */ |
40 | |
41 | /* This is for Emacs's benefit: |