Skip to content

Commit

Permalink
PR: 2261
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
snhenson committed May 27, 2010
1 parent cb877cc commit 77cf9e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77cf9e0

Please sign in to comment.