summaryrefslogtreecommitdiffhomepage
path: root/src/event
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-10-10 18:44:17 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-10-10 18:44:17 +0300
commit9f6e8673f40f7532bf3059bda41e05b545520dd3 (patch)
tree6bb28049fef591146534df799590c137b5ae89db /src/event
parent82ec8492717dcf141eead17fd158ff3f9e072e84 (diff)
downloadnginx-9f6e8673f40f7532bf3059bda41e05b545520dd3.tar.gz
nginx-9f6e8673f40f7532bf3059bda41e05b545520dd3.tar.bz2
Modules compatibility: compatibility with NGX_THREADS.
With this change it is now possible to load modules compiled without the "--with-threads" configure option into nginx binary compiled with it, and vice versa (if a module does not use thread-specific functions), assuming both use the "--with-compat" option.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ngx_event_pipe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_pipe.h b/src/event/ngx_event_pipe.h
index ef2e7a006..10a334027 100644
--- a/src/event/ngx_event_pipe.h
+++ b/src/event/ngx_event_pipe.h
@@ -47,7 +47,7 @@ struct ngx_event_pipe_s {
ngx_event_pipe_output_filter_pt output_filter;
void *output_ctx;
-#if (NGX_THREADS)
+#if (NGX_THREADS || NGX_COMPAT)
ngx_int_t (*thread_handler)(ngx_thread_task_t *task,
ngx_file_t *file);
void *thread_ctx;