1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Fix warnings on win32 build.

This commit is contained in:
Con Kolivas 2013-05-09 21:10:53 +10:00
parent 832012f61d
commit d89936a96c

2
util.c
View File

@ -201,8 +201,10 @@ out:
static void keep_sockalive(SOCKETTYPE fd)
{
#ifndef WIN32
const int tcp_keepidle = 45;
const int tcp_keepintvl = 30;
#endif
const int tcp_one = 1;
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (const void *)&tcp_one, sizeof(tcp_one));