aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/windows.h')
-rw-r--r--src/libstrongswan/utils/windows.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/windows.h b/src/libstrongswan/utils/windows.h
index 9761c068a..8c009cabb 100644
--- a/src/libstrongswan/utils/windows.h
+++ b/src/libstrongswan/utils/windows.h
@@ -262,6 +262,12 @@ int socketpair(int domain, int type, int protocol, int sv[2]);
#define EWOULDBLOCK EAGAIN
/**
+ * ECONNRESET is mapped to something arbitrary. It is returned by
+ * stream->read_all() but should not be mapped from a send/recv WSA error.
+ */
+#define ECONNRESET ENXIO
+
+/**
* recv(2) with support for MSG_DONTWAIT
*/
#define recv(...) windows_recv(__VA_ARGS__)