From 1a3b6106010f5dc0a1c2b9e3a6adf460460146b4 Mon Sep 17 00:00:00 2001 From: Nikolai Lifanov Date: Wed, 6 Jul 2016 08:42:53 -0400 Subject: [PATCH] add tty handling for FreeBSD --- include/common.h | 5 +++++ src/shared.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index 7f3cf27..ff9cd4a 100644 --- a/include/common.h +++ b/include/common.h @@ -52,6 +52,11 @@ #include #endif +#ifdef __FreeBSD__ +#include +#include +#endif + typedef void *OCL_LIB; #ifdef HAVE_HWMON diff --git a/src/shared.c b/src/shared.c index e972b7d..5033dae 100644 --- a/src/shared.c +++ b/src/shared.c @@ -2387,7 +2387,7 @@ int tty_fix() } #endif -#ifdef DARWIN +#if defined(DARWIN) || defined(__FreeBSD__) static struct termios savemodes; static int havemodes = 0; -- 2.25.1