From: Nikolai Lifanov Date: Wed, 6 Jul 2016 12:42:53 +0000 (-0400) Subject: add tty handling for FreeBSD X-Git-Url: https://www.flypig.org.uk/git/?p=hashcat.git;a=commitdiff_plain;h=1a3b6106010f5dc0a1c2b9e3a6adf460460146b4 add tty handling for FreeBSD --- diff --git a/include/common.h b/include/common.h index 7f3cf27..ff9cd4a 100644 --- a/include/common.h +++ b/include/common.h @@ -52,6 +52,11 @@ #include #endif +#ifdef __FreeBSD__ +#include +#include +#endif + typedef void *OCL_LIB; #ifdef HAVE_HWMON diff --git a/src/shared.c b/src/shared.c index e972b7d..5033dae 100644 --- a/src/shared.c +++ b/src/shared.c @@ -2387,7 +2387,7 @@ int tty_fix() } #endif -#ifdef DARWIN +#if defined(DARWIN) || defined(__FreeBSD__) static struct termios savemodes; static int havemodes = 0;