Mercurial > dovecot > core-2.2
changeset 13181:4996e834139f
Compile fix for CentOS 4.9 (and maybe others).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 09 Aug 2011 12:48:15 +0300 |
parents | c0b7dde5b193 |
children | 883e76d90355 |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Sun Aug 07 22:28:19 2011 +0300 +++ b/src/lib-storage/index/index-mail.c Tue Aug 09 12:48:15 2011 +0300 @@ -1342,7 +1342,8 @@ bool index_mail_prefetch(struct mail *_mail) { struct index_mail *mail = (struct index_mail *)_mail; -#ifdef HAVE_POSIX_FADVISE +/* HAVE_POSIX_FADVISE alone isn't enough for CentOS 4.9 */ +#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_WILLNEED) struct mail_storage *storage = _mail->box->storage; struct istream *input; off_t len;