# HG changeset patch # User Maxim Konovalov # Date 1321641720 0 # Node ID 11e47bf300db4d33cb977f056e6223e742440336 # Parent 186f02886beda73b0eef46e51e4262cb575675e0 FreeBSD 10-current has recently gotten POSIX_FADV_* macros. A fix for the broken build applied. Patch from Igor Sysoev. diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -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)