1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-24 22:50:58 +00:00

Reenable select_read_timeout and select_write_timeout on windows

This commit is contained in:
jsteube 2019-02-26 19:54:25 +01:00
parent 89d86130f1
commit f63762e597

View File

@ -800,10 +800,6 @@ float get_entropy (const u8 *buf, const int len)
return entropy; return entropy;
} }
#if defined (_WIN)
#else
int select_read_timeout (int sockfd, const int sec) int select_read_timeout (int sockfd, const int sec)
{ {
struct timeval tv; struct timeval tv;
@ -834,8 +830,6 @@ int select_write_timeout (int sockfd, const int sec)
return select (sockfd + 1, NULL, &fds, NULL, &tv); return select (sockfd + 1, NULL, &fds, NULL, &tv);
} }
#endif
#if defined (_WIN) #if defined (_WIN)
int select_read_timeout_console (const int sec) int select_read_timeout_console (const int sec)