comparison src/core/ngx_module.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
comparison
equal deleted inserted replaced
6732:57148b755320 6733:adc2414856b1
125 #define NGX_MODULE_SIGNATURE_21 "1" 125 #define NGX_MODULE_SIGNATURE_21 "1"
126 #else 126 #else
127 #define NGX_MODULE_SIGNATURE_21 "0" 127 #define NGX_MODULE_SIGNATURE_21 "0"
128 #endif 128 #endif
129 129
130 #if (NGX_THREADS) 130 #if (NGX_THREADS || NGX_COMPAT)
131 #define NGX_MODULE_SIGNATURE_22 "1" 131 #define NGX_MODULE_SIGNATURE_22 "1"
132 #else 132 #else
133 #define NGX_MODULE_SIGNATURE_22 "0" 133 #define NGX_MODULE_SIGNATURE_22 "0"
134 #endif 134 #endif
135 135