Mercurial > hg > nginx
comparison src/event/ngx_event.h @ 6734:0c572ed91b36
Modules compatibility: compatibility with NGX_HAVE_FILE_AIO.
With this change it is now possible to load modules compiled without
the "--with-file-aio" configure option into nginx binary compiled with it,
and vice versa, assuming both use the "--with-compat" option.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Oct 2016 18:44:17 +0300 |
parents | 56fc55e32f23 |
children | 371da6a7021b |
comparison
equal
deleted
inserted
replaced
6733:adc2414856b1 | 6734:0c572ed91b36 |
---|---|
150 struct ngx_event_aio_s { | 150 struct ngx_event_aio_s { |
151 void *data; | 151 void *data; |
152 ngx_event_handler_pt handler; | 152 ngx_event_handler_pt handler; |
153 ngx_file_t *file; | 153 ngx_file_t *file; |
154 | 154 |
155 #if (NGX_HAVE_AIO_SENDFILE) | 155 #if (NGX_HAVE_AIO_SENDFILE || NGX_COMPAT) |
156 ssize_t (*preload_handler)(ngx_buf_t *file); | 156 ssize_t (*preload_handler)(ngx_buf_t *file); |
157 #endif | 157 #endif |
158 | 158 |
159 ngx_fd_t fd; | 159 ngx_fd_t fd; |
160 | 160 |