From f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Fri, 18 Nov 2011 18:42:00 +0000 Subject: [PATCH] FreeBSD 10-current has recently gotten POSIX_FADV_* macros. A fix for the broken build applied. Patch from Igor Sysoev. --- src/os/unix/ngx_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index ad26d2752..196323727 100644 --- 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)