diff src/os/unix/ngx_files.c @ 4299:11e47bf300db

FreeBSD 10-current has recently gotten POSIX_FADV_* macros. A fix for the broken build applied. Patch from Igor Sysoev.
author Maxim Konovalov <maxim@nginx.com>
date Fri, 18 Nov 2011 18:42:00 +0000
parents 3203ddb78279
children d620f497c50f
line wrap: on
line diff
--- 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)