diff options
| author | Maxim Konovalov <maxim@nginx.com> | 2011-11-18 18:42:00 +0000 |
|---|---|---|
| committer | Maxim Konovalov <maxim@nginx.com> | 2011-11-18 18:42:00 +0000 |
| commit | f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00 (patch) | |
| tree | d3f57b38696f615742d33a24d466651c2f729516 /src/os/unix/ngx_files.c | |
| parent | e0c1a63028d1c1371f99b6449e4d1ba9d40873a9 (diff) | |
| download | nginx-f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00.tar.gz nginx-f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00.tar.bz2 | |
FreeBSD 10-current has recently gotten POSIX_FADV_* macros.
A fix for the broken build applied.
Patch from Igor Sysoev.
Diffstat (limited to '')
| -rw-r--r-- | src/os/unix/ngx_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
