Browse Source

fix for visual studio 2008

Sebastien Jodogne 6 years ago
parent
commit
a06ddb63da
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/civetweb.c

+ 3 - 0
src/civetweb.c

@@ -536,6 +536,9 @@ typedef long off_t;
 #if !defined(EWOULDBLOCK)
 #if !defined(EWOULDBLOCK)
 #define EWOULDBLOCK WSAEWOULDBLOCK
 #define EWOULDBLOCK WSAEWOULDBLOCK
 #endif /* !EWOULDBLOCK */
 #endif /* !EWOULDBLOCK */
+#if !defined(ECONNRESET)
+#define ECONNRESET WSAECONNRESET
+#endif /* !ECONNRESET */
 #define _POSIX_
 #define _POSIX_
 #define INT64_FMT "I64d"
 #define INT64_FMT "I64d"
 #define UINT64_FMT "I64u"
 #define UINT64_FMT "I64u"