From 63c065a12738b0fc2531516a21dc56f8a367db28 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 31 Jan 2006 15:15:00 +0000 Subject: [PATCH] backport: compile fixes --- configure.in | 1 + src/drv_imap.c | 4 ++++ 2 files changed, 5 insertions(+) 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..f930764 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -31,11 +31,15 @@ #include #include #include +#include #include #include #include #include #include +#ifdef HAVE_SYS_FILIO_H +# include +#endif #include #include #include