aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.c
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@nginx.com>2011-11-18 18:42:00 +0000
committerMaxim Konovalov <maxim@nginx.com>2011-11-18 18:42:00 +0000
commitf61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00 (patch)
treed3f57b38696f615742d33a24d466651c2f729516 /src/os/unix/ngx_files.c
parente0c1a63028d1c1371f99b6449e4d1ba9d40873a9 (diff)
downloadnginx-f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00.tar.gz
nginx-f61b7b3a8322265de63ba5b3a3b8f8af8cbf3e00.zip
FreeBSD 10-current has recently gotten POSIX_FADV_* macros.
A fix for the broken build applied. Patch from Igor Sysoev.
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r--src/os/unix/ngx_files.c2
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)