diff src/core/ngx_connection.h @ 6733:adc2414856b1

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Oct 2016 18:44:17 +0300
parents 48bab8b83f4e
children 0c572ed91b36
line wrap: on
line diff
--- a/src/core/ngx_connection.h	Mon Oct 10 16:24:50 2016 +0300
+++ b/src/core/ngx_connection.h	Mon Oct 10 18:44:17 2016 +0300
@@ -186,7 +186,7 @@
     unsigned            busy_count:2;
 #endif
 
-#if (NGX_THREADS)
+#if (NGX_THREADS || NGX_COMPAT)
     ngx_thread_task_t  *sendfile_task;
 #endif
 };