summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/tntnet/files/tntnet-2.0-gnutls.patch')
-rw-r--r--dev-libs/tntnet/files/tntnet-2.0-gnutls.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-libs/tntnet/files/tntnet-2.0-gnutls.patch b/dev-libs/tntnet/files/tntnet-2.0-gnutls.patch
new file mode 100644
index 000000000000..6301f580502d
--- /dev/null
+++ b/dev-libs/tntnet/files/tntnet-2.0-gnutls.patch
@@ -0,0 +1,31 @@
+Index: framework/common/gnutls.cpp
+===================================================================
+--- framework/common/gnutls.cpp (revision 1256)
++++ framework/common/gnutls.cpp (working copy)
+@@ -35,7 +35,7 @@
+ #include "tnt/gcryptinit.h"
+ #include <sys/poll.h>
+ #include <errno.h>
+-#include <cxxtools/net/net.h>
++#include <cxxtools/ioerror.h>
+
+ log_define("tntnet.ssl")
+
+@@ -364,7 +364,7 @@
+ break;
+
+ if (ret == GNUTLS_E_AGAIN)
+- throw cxxtools::net::Timeout();
++ throw cxxtools::IOTimeout();
+
+ if (ret < 0 && ret != GNUTLS_E_INTERRUPTED)
+ throw GnuTlsException("gnutls_record_recv", ret);
+@@ -403,7 +403,7 @@
+ break;
+
+ if (ret == GNUTLS_E_AGAIN)
+- throw cxxtools::net::Timeout();
++ throw cxxtools::IOTimeout();
+
+ if (ret != GNUTLS_E_INTERRUPTED)
+ throw GnuTlsException("gnutls_record_send", ret);