Author: cazfi Date: Sun Jan 31 19:50:48 2016 New Revision: 31691 URL: http://svn.gna.org/viewcvs/freeciv?rev=31691&view=rev Log: Added errno mapping for WSAECONNABORTED.
Based on anonymous report. See bug #20881 Modified: trunk/utility/net_types.h trunk/utility/netintf.c Modified: trunk/utility/net_types.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/utility/net_types.h?rev=31691&r1=31690&r2=31691&view=diff ============================================================================== --- trunk/utility/net_types.h (original) +++ trunk/utility/net_types.h Sun Jan 31 19:50:48 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: trunk/utility/netintf.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/utility/netintf.c?rev=31691&r1=31690&r2=31691&view=diff ============================================================================== --- trunk/utility/netintf.c (original) +++ trunk/utility/netintf.c Sun Jan 31 19:50:48 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