mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Fix warnings on win32 build.
This commit is contained in:
parent
832012f61d
commit
d89936a96c
2
util.c
2
util.c
@ -201,8 +201,10 @@ out:
|
|||||||
|
|
||||||
static void keep_sockalive(SOCKETTYPE fd)
|
static void keep_sockalive(SOCKETTYPE fd)
|
||||||
{
|
{
|
||||||
|
#ifndef WIN32
|
||||||
const int tcp_keepidle = 45;
|
const int tcp_keepidle = 45;
|
||||||
const int tcp_keepintvl = 30;
|
const int tcp_keepintvl = 30;
|
||||||
|
#endif
|
||||||
const int tcp_one = 1;
|
const int tcp_one = 1;
|
||||||
|
|
||||||
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (const void *)&tcp_one, sizeof(tcp_one));
|
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (const void *)&tcp_one, sizeof(tcp_one));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user