diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-05-27 13:07:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-05-27 13:07:22 +0000 |
commit | 77cf9e09b05126c514f54abacbd11bc5a1d71333 (patch) | |
tree | b0e07190601a8f88f83956cebe1f41512de5cc17 /e_os.h | |
parent | cb877ccb35ae50b34f9a37eb5aa33b8a7ae72e29 (diff) | |
download | openssl-77cf9e09b05126c514f54abacbd11bc5a1d71333.tar.gz |
PR: 2261
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.
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |