--- imap/src/osdep/unix/os_bsi.h.orig Sat Oct 19 12:30:04 1996 +++ imap/src/osdep/unix/os_bsi.h Sun Feb 21 10:25:47 1999 @@ -37,7 +37,18 @@ #include #include #include + +/* + * FreeBSD v3.x and onward whines about being obsolete, so switch + * to POSIX semantics. + */ +#if __FreeBSD__ >= 3 +#include +#define direct dirent +#else #include +#endif + #include #include #include