Mercurial > hg > nginx
comparison src/core/ngx_module.h @ 6734:0c572ed91b36
Modules compatibility: compatibility with NGX_HAVE_FILE_AIO.
With this change it is now possible to load modules compiled without
the "--with-file-aio" configure option into nginx binary compiled with it,
and vice versa, assuming both use the "--with-compat" option.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Oct 2016 18:44:17 +0300 |
parents | adc2414856b1 |
children | e38e9c50a40e |
comparison
equal
deleted
inserted
replaced
6733:adc2414856b1 | 6734:0c572ed91b36 |
---|---|
33 #define NGX_MODULE_SIGNATURE_2 "1" | 33 #define NGX_MODULE_SIGNATURE_2 "1" |
34 #else | 34 #else |
35 #define NGX_MODULE_SIGNATURE_2 "0" | 35 #define NGX_MODULE_SIGNATURE_2 "0" |
36 #endif | 36 #endif |
37 | 37 |
38 #if (NGX_HAVE_FILE_AIO) | 38 #if (NGX_HAVE_FILE_AIO || NGX_COMPAT) |
39 #define NGX_MODULE_SIGNATURE_3 "1" | 39 #define NGX_MODULE_SIGNATURE_3 "1" |
40 #else | 40 #else |
41 #define NGX_MODULE_SIGNATURE_3 "0" | 41 #define NGX_MODULE_SIGNATURE_3 "0" |
42 #endif | 42 #endif |
43 | 43 |
44 #if (NGX_HAVE_AIO_SENDFILE) | 44 #if (NGX_HAVE_AIO_SENDFILE || NGX_COMPAT) |
45 #define NGX_MODULE_SIGNATURE_4 "1" | 45 #define NGX_MODULE_SIGNATURE_4 "1" |
46 #else | 46 #else |
47 #define NGX_MODULE_SIGNATURE_4 "0" | 47 #define NGX_MODULE_SIGNATURE_4 "0" |
48 #endif | 48 #endif |
49 | 49 |