From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/gnutls/files: gnutls-2.12.0-C++.patch |
Date: | Wed, 30 Mar 2011 20:40:08 |
Message-Id: | 20110330203959.26ACE20057@flycatcher.gentoo.org |
1 | arfrever 11/03/30 20:39:59 |
2 | |
3 | Added: gnutls-2.12.0-C++.patch |
4 | Log: |
5 | Fix compatibility with C++. |
6 | |
7 | (Portage version: 2.2.0_alpha29_p2/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-libs/gnutls/files/gnutls-2.12.0-C++.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-2.12.0-C++.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-2.12.0-C++.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gnutls-2.12.0-C++.patch |
16 | =================================================================== |
17 | http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=66ebfc0120a47c350c4485e195f72ff851296e30 |
18 | |
19 | --- lib/includes/gnutls/compat.h |
20 | +++ lib/includes/gnutls/compat.h |
21 | @@ -3,6 +3,11 @@ |
22 | #ifndef _GNUTLS_COMPAT_H |
23 | #define _GNUTLS_COMPAT_H |
24 | |
25 | +#ifdef __cplusplus |
26 | +extern "C" |
27 | +{ |
28 | +#endif |
29 | + |
30 | #ifdef __GNUC__ |
31 | |
32 | #define _GNUTLS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) |
33 | @@ -345,4 +350,8 @@ |
34 | |
35 | void gnutls_transport_set_lowat (gnutls_session_t session, int num) _GNUTLS_GCC_ATTR_DEPRECATED; |
36 | |
37 | +#ifdef __cplusplus |
38 | +} |
39 | +#endif |
40 | + |
41 | #endif /* _GNUTLS_COMPAT_H */ |