Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/config/modulesets/patches/libjingle_tcp_wouldblock.patch
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-04-20 00:57:50 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-04-20 00:57:50 (GMT)
commit41710698a04c20e566fcb2c152802c1e38cb6316 (patch)
tree2ac4007972081640419fceb63116664fb6642236 /config/modulesets/patches/libjingle_tcp_wouldblock.patch
parent9f2bbbbebfa7b6f2de89520c6f591549d1ae2667 (diff)
Patches needs to be under modulesets so that jhbuild can find them.
Diffstat (limited to 'config/modulesets/patches/libjingle_tcp_wouldblock.patch')
-rw-r--r--config/modulesets/patches/libjingle_tcp_wouldblock.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/modulesets/patches/libjingle_tcp_wouldblock.patch b/config/modulesets/patches/libjingle_tcp_wouldblock.patch
new file mode 100644
index 0000000..a89e0a7
--- /dev/null
+++ b/config/modulesets/patches/libjingle_tcp_wouldblock.patch
@@ -0,0 +1,15 @@
+diff -Nur libjingle0.3-0.3.11/talk/p2p/base/tcpport.cc libjingle0.3-0.3.11.new/talk/p2p/base/tcpport.cc
+--- libjingle0.3-0.3.11/talk/p2p/base/tcpport.cc 2007-04-25 16:45:58.000000000 +0100
++++ libjingle0.3-0.3.11.new/talk/p2p/base/tcpport.cc 2007-05-01 17:19:29.000000000 +0100
+@@ -211,7 +211,10 @@
+
+ int TCPConnection::Send(const void* data, size_t size) {
+ if (write_state() != STATE_WRITABLE)
+- return 0;
++ {
++ error_ = EWOULDBLOCK;
++ return SOCKET_ERROR;
++ }
+
+ int sent = socket_->Send(data, size);
+ if (sent < 0) {