diff --git a/include/common.h b/include/common.h index 7f3cf270b..ff9cd4a60 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 e972b7d55..5033dae70 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;