FreeBSD 10-current has recently gotten POSIX_FADV_* macros.

A fix for the broken build applied.

Patch from Igor Sysoev.
This commit is contained in:
Maxim Konovalov 2011-11-18 18:42:00 +00:00
parent e0c1a63028
commit f61b7b3a83

View File

@ -464,7 +464,7 @@ ngx_unlock_fd(ngx_fd_t fd)
}
#if (NGX_HAVE_POSIX_FADVISE)
#if (NGX_HAVE_POSIX_FADVISE) && !(NGX_HAVE_F_READAHEAD)
ngx_int_t
ngx_read_ahead(ngx_fd_t fd, size_t n)