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.
This commit is contained in:
parent
356f164f52
commit
8ceee689c7
1 changed files with 3 additions and 0 deletions
3
e_os.h
3
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
|
||||
|
|
Loading…
Reference in a new issue