diff src/os/unix/ngx_files.h @ 3322:e19df6e65352

fix posix_fadvise() error handling
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Nov 2009 09:16:58 +0000
parents 04cfc09b8b8d
children ac281bc4c187
line wrap: on
line diff
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -264,7 +264,7 @@ ngx_err_t ngx_unlock_fd(ngx_fd_t fd);
 
 #define NGX_HAVE_READ_AHEAD      1
 
-#define ngx_read_ahead(fd, n)    posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL)
+ngx_int_t ngx_read_ahead(ngx_fd_t fd, size_t n);
 #define ngx_read_ahead_n         "posix_fadvise(POSIX_FADV_SEQUENTIAL)"
 
 #else