From 700a779824c2d83ba1f8c7278f20863dce5ea3e1 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 15 Nov 2009 09:16:58 +0000 Subject: fix posix_fadvise() error handling --- src/os/unix/ngx_files.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/unix/ngx_files.h') diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 2efd24778..ccaf44a93 100644 --- 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 -- cgit