From 8ceee689c7d7b870bf8631b2d1b65eb04ffbe9c1 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 27 May 2010 13:07:54 +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 9c5c6fdb92..4b96c7bc6b 100644 --- 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 -- 2.25.1