Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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/core/ngx_module.h
parent82ec8492717dcf141eead17fd158ff3f9e072e84 (diff)
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/core/ngx_module.h')
-rw-r--r--src/core/ngx_module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_module.h b/src/core/ngx_module.h
index 10a7eabaf..626481d8a 100644
--- a/src/core/ngx_module.h
+++ b/src/core/ngx_module.h
@@ -127,7 +127,7 @@
#define NGX_MODULE_SIGNATURE_21 "0"
#endif
-#if (NGX_THREADS)
+#if (NGX_THREADS || NGX_COMPAT)
#define NGX_MODULE_SIGNATURE_22 "1"
#else
#define NGX_MODULE_SIGNATURE_22 "0"