8
0
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:
AlexPeshkoff 2022-09-07 18:52:08 +03:00
parent 77e711a68d
commit 4eef295d5c
2 changed files with 2 additions and 5 deletions

View File

@ -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";

View File

@ -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);