diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2016-10-10 18:44:17 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-10-10 18:44:17 +0300 |
| commit | 9f6e8673f40f7532bf3059bda41e05b545520dd3 (patch) | |
| tree | 6bb28049fef591146534df799590c137b5ae89db /src/http/ngx_http_cache.h | |
| parent | 82ec8492717dcf141eead17fd158ff3f9e072e84 (diff) | |
| download | nginx-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 '')
| -rw-r--r-- | src/http/ngx_http_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index 9c9ff6f65..70342d0ed 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -93,7 +93,7 @@ struct ngx_http_cache_s { ngx_http_file_cache_t *file_cache; ngx_http_file_cache_node_t *node; -#if (NGX_THREADS) +#if (NGX_THREADS || NGX_COMPAT) ngx_thread_task_t *thread_task; #endif |
