add tty handling for FreeBSD

pull/421/head
Nikolai Lifanov 8 years ago
parent c2bcdbebcb
commit 1a3b610601

@ -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

@ -2387,7 +2387,7 @@ int tty_fix()
}
#endif
#ifdef DARWIN
#if defined(DARWIN) || defined(__FreeBSD__)
static struct termios savemodes;
static int havemodes = 0;

Loading…
Cancel
Save