1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Windows uses errno for WSAETIMEDOUT

This commit is contained in:
Con Kolivas 2013-10-14 12:01:40 +11:00
parent 02a4f8df9c
commit 166200c094

2
util.h
View File

@ -43,7 +43,7 @@
}
static inline bool sock_timeout(void)
{
return (WSAGetLastError() == WSAETIMEDOUT);
return (errno == WSAETIMEDOUT);
}
#ifndef SHUT_RDWR
#define SHUT_RDWR SD_BOTH