1
mirror of https://github.com/hashcat/hashcat synced 2024-11-13 17:28:58 +01:00

add tty handling for FreeBSD

This commit is contained in:
Nikolai Lifanov 2016-07-06 08:42:53 -04:00
parent c2bcdbebcb
commit 1a3b610601
2 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,11 @@
#include <mach/mach.h>
#endif
#ifdef __FreeBSD__
#include <termios.h>
#include <sys/ioctl.h>
#endif
typedef void *OCL_LIB;
#ifdef HAVE_HWMON

View File

@ -2387,7 +2387,7 @@ int tty_fix()
}
#endif
#ifdef DARWIN
#if defined(DARWIN) || defined(__FreeBSD__)
static struct termios savemodes;
static int havemodes = 0;