Author: cazfi
Date: Sun Jan 31 19:50:54 2016
New Revision: 31692

URL: http://svn.gna.org/viewcvs/freeciv?rev=31692&view=rev
Log:
Added errno mapping for WSAECONNABORTED.

Based on anonymous report.

See bug #20881

Modified:
    branches/S2_6/utility/net_types.h
    branches/S2_6/utility/netintf.c

Modified: branches/S2_6/utility/net_types.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/utility/net_types.h?rev=31692&r1=31691&r2=31692&view=diff
==============================================================================
--- branches/S2_6/utility/net_types.h   (original)
+++ branches/S2_6/utility/net_types.h   Sun Jan 31 19:50:54 2016
@@ -35,6 +35,7 @@
 #undef ECONNREFUSED
 #undef EADDRNOTAVAIL
 #undef ETIMEDOUT
+#undef ECONNABORTED
 #define EINTR         WSAEINTR
 #define EINPROGRESS   WSAEWOULDBLOCK
 #define EWOULDBLOCK   WSAEWOULDBLOCK
@@ -42,6 +43,7 @@
 #define ECONNREFUSED  WSAECONNREFUSED
 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
 #define ETIMEDOUT     WSAETIMEDOUT
+#define ECONNABORTED  WSAECONNABORTED
 #endif /* FREECIV_HAVE_WINSOCK */
 
 /* Which protocol will be used for LAN announcements */

Modified: branches/S2_6/utility/netintf.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/utility/netintf.c?rev=31692&r1=31691&r2=31692&view=diff
==============================================================================
--- branches/S2_6/utility/netintf.c     (original)
+++ branches/S2_6/utility/netintf.c     Sun Jan 31 19:50:54 2016
@@ -91,6 +91,7 @@
     case WSAECONNRESET:
     case WSAECONNREFUSED:
     case WSAETIMEDOUT:
+    case WSAECONNABORTED:
       errno = err;
       return;
     default:


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to