<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39786 >

The attached patch adds the missing errno mapping.
Index: utility/netintf.c
===================================================================
--- utility/netintf.c	(revision 13803)
+++ utility/netintf.c	(working copy)
@@ -71,6 +71,7 @@
     case WSAEINTR:
     case WSAEWOULDBLOCK:
     case WSAECONNRESET:
+    case WSAECONNREFUSED:
       errno = WSAGetLastError();
       return;
     default:
Index: utility/netintf.h
===================================================================
--- utility/netintf.h	(revision 13803)
+++ utility/netintf.h	(working copy)
@@ -48,10 +48,13 @@
 #undef EINTR
 #undef EINPROGRESS
 #undef EWOULDBLOCK
+#undef ECONNRESET
+#undef ECONNREFUSED
 #define EINTR         WSAEINTR
 #define EINPROGRESS   WSAEWOULDBLOCK
 #define EWOULDBLOCK   WSAEWOULDBLOCK
 #define ECONNRESET    WSAECONNRESET
+#define ECONNREFUSED  WSAECONNREFUSED
 #endif   
 
 #ifdef FD_ZERO
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to