--- imap.c.orig 2018-02-20 18:43:53 UTC +++ imap.c @@ -9,11 +9,15 @@ #include #include #include +#include #include #ifdef USE_OPENSSL #include #include #endif +#if defined(__FreeBSD__) +#define __BSD_VISIBLE 1 +#endif #include "imap.h" struct imap_ll {