From 57ec6c9bad53adbca857b1c558ee761a51c8bb3b Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 27 May 2010 13:07:45 +0000 Subject: [PATCH] PR: 2261 Submitted By: De Rudder, Stephen L." Workaround for newer Windows headers which define EADDRINUSE but not to the same value as WSAEADDRINUSE. --- e_os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e_os.h b/e_os.h index 0f4b7994f5..48ed6bdff4 100644 --- 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 -- 2.25.1