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
7a09bc4068
commit
57ec6c9bad
3
e_os.h
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user