add tty handling for FreeBSD
[hashcat.git] / src / shared.c
index e972b7d..5033dae 100644 (file)
@@ -2387,7 +2387,7 @@ int tty_fix()
 }
 #endif
 
-#ifdef DARWIN
+#if defined(DARWIN) || defined(__FreeBSD__)
 static struct termios savemodes;
 static int havemodes = 0;