diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-30 20:39:59 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-30 20:39:59 +0000 |
commit | 47ba174e175a7a36819d2f9ee5b74eb34724a489 (patch) | |
tree | 7386b798319ea0972731987e73f4b030053704fa /net-libs/gnutls/files | |
parent | Adopted package (diff) | |
download | gentoo-2-47ba174e175a7a36819d2f9ee5b74eb34724a489.tar.gz gentoo-2-47ba174e175a7a36819d2f9ee5b74eb34724a489.tar.bz2 gentoo-2-47ba174e175a7a36819d2f9ee5b74eb34724a489.zip |
Fix compatibility with C++.
(Portage version: 2.2.0_alpha29_p2/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/gnutls/files')
-rw-r--r-- | net-libs/gnutls/files/gnutls-2.12.0-C++.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-libs/gnutls/files/gnutls-2.12.0-C++.patch b/net-libs/gnutls/files/gnutls-2.12.0-C++.patch new file mode 100644 index 000000000000..eec5254dc6b8 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.0-C++.patch @@ -0,0 +1,25 @@ +http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=66ebfc0120a47c350c4485e195f72ff851296e30 + +--- lib/includes/gnutls/compat.h ++++ lib/includes/gnutls/compat.h +@@ -3,6 +3,11 @@ + #ifndef _GNUTLS_COMPAT_H + #define _GNUTLS_COMPAT_H + ++#ifdef __cplusplus ++extern "C" ++{ ++#endif ++ + #ifdef __GNUC__ + + #define _GNUTLS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +@@ -345,4 +350,8 @@ + + void gnutls_transport_set_lowat (gnutls_session_t session, int num) _GNUTLS_GCC_ATTR_DEPRECATED; + ++#ifdef __cplusplus ++} ++#endif ++ + #endif /* _GNUTLS_COMPAT_H */ |