commit | f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00 | [log] [tgz] |
---|---|---|
author | Maxim Konovalov <maxim@nginx.com> | Fri Nov 18 18:42:00 2011 +0000 |
committer | Maxim Konovalov <maxim@nginx.com> | Fri Nov 18 18:42:00 2011 +0000 |
tree | d3f57b38696f615742d33a24d466651c2f729516 | |
parent | e0c1a63028d1c1371f99b6449e4d1ba9d40873a9 [diff] |
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 index ad26d27..1963237 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c
@@ -464,7 +464,7 @@ } -#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)