From d414d0aae2d5f59b1404b961a5154c46e4a14b32 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 12 Jan 2006 06:36:44 +0000 Subject: [PATCH] solaris 10 fix: use sys/filio.h for FIONREAD. untested. REF: <20060111215014.GA601@49.180.97-84.rev.gaoland.net> --- configure.in | 1 + src/drv_imap.c | 3 +++ 2 files changed, 4 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..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