PR: 2261
authorDr. Stephen Henson <steve@openssl.org>
Thu, 27 May 2010 13:07:54 +0000 (13:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 27 May 2010 13:07:54 +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 9c5c6fdb92f27202cbd4381ea4b847f77212f7af..4b96c7bc6bec8ad1867b3865d2443c97384a8386 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -153,6 +153,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