add tty handling for FreeBSD
[hashcat.git] / include / common.h
index 0b670bc..ff9cd4a 100644 (file)
 #include <semaphore.h>
 #include <dlfcn.h>
 #include <pwd.h>
+#include <limits.h>
 
 #ifdef LINUX
-#include <termio.h>
+#include <termios.h>
+#include <sys/ioctl.h>
 #endif
 
 #ifdef DARWIN
 #include <sys/ioctl.h>
 #include <mach-o/dyld.h>
 #include <mach/mach.h>
-#include <limits.h>
+#endif
+
+#ifdef __FreeBSD__
+#include <termios.h>
+#include <sys/ioctl.h>
 #endif
 
 typedef void *OCL_LIB;