mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-09 16:18:19 +00:00
Merge pull request #394 from f1rebird/master
Make linux-build POSIX compatible
This commit is contained in:
commit
86f1305246
@ -41,7 +41,8 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
#include <termio.h>
|
#include <termios.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DARWIN
|
#ifdef DARWIN
|
||||||
|
@ -2334,12 +2334,12 @@ void drupal7_encode (u8 digest[64], u8 buf[43])
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
static struct termio savemodes;
|
static struct termios savemodes;
|
||||||
static int havemodes = 0;
|
static int havemodes = 0;
|
||||||
|
|
||||||
int tty_break()
|
int tty_break()
|
||||||
{
|
{
|
||||||
struct termio modmodes;
|
struct termios modmodes;
|
||||||
|
|
||||||
if (ioctl (fileno (stdin), TCGETA, &savemodes) < 0) return -1;
|
if (ioctl (fileno (stdin), TCGETA, &savemodes) < 0) return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user