summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-03-30 20:39:59 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-03-30 20:39:59 +0000
commit01d16d91a179916e1114d87e25bd181cdd88dac1 (patch)
tree47e35b8698d89eb8129dd698fabdcc85e791caa3 /net-libs/gnutls/files
parentAdopted package (diff)
downloadhistorical-01d16d91a179916e1114d87e25bd181cdd88dac1.tar.gz
historical-01d16d91a179916e1114d87e25bd181cdd88dac1.tar.bz2
historical-01d16d91a179916e1114d87e25bd181cdd88dac1.zip
Fix compatibility with C++.
Package-Manager: portage-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++.patch25
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 */