Make linux-build POSIX compatible
[hashcat.git] / include / common.h
index 0b670bc..7f3cf27 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
@@ -48,7 +50,6 @@
 #include <sys/ioctl.h>
 #include <mach-o/dyld.h>
 #include <mach/mach.h>
-#include <limits.h>
 #endif
 
 typedef void *OCL_LIB;