diff --git a/configure.in b/configure.in index 037005d..4ce6282 100644 --- a/configure.in +++ b/configure.in @@ -9,6 +9,7 @@ if test "$GCC" = yes; then CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes" fi +AC_CHECK_HEADERS([sys/filio.h]) AC_CHECK_FUNCS(vasprintf) AC_CHECK_LIB(socket, socket, [SOCK_LIBS="-lsocket"]) diff --git a/src/drv_imap.c b/src/drv_imap.c index fcdc1f1..5398449 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -36,6 +36,9 @@ #include #include #include +#ifdef HAVE_SYS_FILIO_H +# include +#endif #include #include #include