mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:40:38 +01:00
This should fix windows build
This commit is contained in:
parent
77e711a68d
commit
4eef295d5c
@ -86,10 +86,6 @@
|
||||
#include "../remote/os/win32/xnet_proto.h"
|
||||
#endif
|
||||
|
||||
#ifdef WIN_NT
|
||||
#define sleep(seconds) Sleep ((seconds) * 1000)
|
||||
#endif // WIN_NT
|
||||
|
||||
|
||||
const char* const PROTOCOL_INET = "inet";
|
||||
const char* const PROTOCOL_INET4 = "inet4";
|
||||
|
@ -1842,8 +1842,9 @@ static void force_close(rem_port* port)
|
||||
if (port->port_state != rem_port::PENDING)
|
||||
return;
|
||||
|
||||
port->port_state = rem_port::BROKEN;
|
||||
RefMutexGuard guard(*port->port_write_sync, FB_FUNCTION);
|
||||
|
||||
port->port_state = rem_port::BROKEN;
|
||||
if (port->port_handle != INVALID_SOCKET)
|
||||
{
|
||||
shutdown(port->port_handle, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user