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:
parent
89d86130f1
commit
f63762e597
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user