--- term.c.orig 2014-02-24 14:33:39.000000000 -0500 +++ term.c 2014-02-24 14:35:02.000000000 -0500 @@ -16,8 +16,12 @@ #include #endif #ifndef AIX +#if defined(__FreeBSD__) +#include +#else #include /* needed on Solaris 8 */ #endif +#endif #include #include