add tty handling for FreeBSD
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -2387,7 +2387,7 @@ int tty_fix()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef DARWIN
|
||||
#if defined(DARWIN) || defined(__FreeBSD__)
|
||||
static struct termios savemodes;
|
||||
static int havemodes = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user