PR: 2261
authorDr. Stephen Henson <steve@openssl.org>
Thu, 27 May 2010 13:07:22 +0000 (13:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 27 May 2010 13:07:22 +0000 (13:07 +0000)
Submitted By: De Rudder, Stephen L." <s_derudder@tditx.com>

Workaround for newer Windows headers which define EADDRINUSE but not to the
same value as WSAEADDRINUSE.

e_os.h

diff --git a/e_os.h b/e_os.h
index 0f4b7994f55efb5f964e225c24c7d349ddeb6ab2..48ed6bdff4d7af1cdd2d8dbdfd49483ceb0cd8cc 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -150,6 +150,9 @@ extern "C" {
 #define clear_socket_error()   WSASetLastError(0)
 #define readsocket(s,b,n)      recv((s),(b),(n),0)
 #define writesocket(s,b,n)     send((s),(b),(n),0)
+#ifdef EADDRINUSE
+#undef EADDRINUSE
+#endif
 #define EADDRINUSE             WSAEADDRINUSE
 #elif defined(__DJGPP__)
 #define WATT32