diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-05 13:12:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-05 13:12:30 +0000 |
commit | 4121aa34403665f662bbd9d8ef21176f36a8108c (patch) | |
tree | 3b99cf2c726a585383419910d4c3b8ba03d84a67 /src/os/unix/ngx_files.c | |
parent | 9b67ca0e410a17fbdef14de5e358782f0195ab96 (diff) | |
download | nginx-4121aa34403665f662bbd9d8ef21176f36a8108c.tar.gz nginx-4121aa34403665f662bbd9d8ef21176f36a8108c.zip |
export aio presence knowledge to prevent using "aio sendfile",
if aio does not present
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r-- | src/os/unix/ngx_files.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index 618d4e214..2264cc13e 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -8,6 +8,13 @@ #include <ngx_core.h> +#if (NGX_HAVE_FILE_AIO) + +ngx_uint_t ngx_file_aio = 1; + +#endif + + ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) { |