MinGW patch



Hi,
In libsoup 2.27.4 and 2.27.5 some errors were introduced when compiling for Windows. Apparently in libsoup/soup-gnutls.c nread and nwrote got swapped, except under #ifdef G_OS_WIN32.
Please find my patch below.
Regards
   Brecht Sanders



--- libsoup/soup-gnutls.c  Mon Jul 13 16:49:00 2009
+++ libsoup/soup-gnutls.c  Thu Jul 30 11:28:00 2009
@@ -394,3 +394,3 @@
#ifdef G_OS_WIN32
- chan->eagain = (nwrote == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK); + chan->eagain = (nread == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK);
#else
@@ -410,3 +410,3 @@
#ifdef G_OS_WIN32
- chan->eagain = (nread == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK); + chan->eagain = (nwrote == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK);
#else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]