--- libs/indicom.c.orig 2021-06-26 09:52:40 UTC +++ libs/indicom.c @@ -32,6 +32,7 @@ #include "base64.h" #include "config.h" +#include #if defined(HAVE_LIBNOVA) #include @@ -61,7 +62,9 @@ #endif #if defined(BSD) && !defined(__GNU__) +#if defined __APPLE__ #include +#endif #include #endif @@ -763,7 +766,7 @@ int tty_connect(const char *device, int bit_rate, int case 57600: bps = B57600; break; case 115200: bps = B115200; break; case 230400: bps = B230400; break; -#ifndef __APPLE__ +#if !defined __APPLE__ && !defined(__FreeBSD__) case 460800: bps = B460800; break; case 576000: bps = B576000; break; case 921600: bps = B921600; break;