From: Piotr Sikora Date: Wed, 10 Feb 2016 00:31:26 +0000 (-0800) Subject: Core: ngx_module_t compatibility with C++. X-Git-Tag: release-1.9.12~23 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=2fe20c9b34b3b5279cf73cb8c4074bf0da242a31;p=nginx.git Core: ngx_module_t compatibility with C++. Changes to NGX_MODULE_V1 and ngx_module_t in 85dea406e18f (1.9.11) broke all modules written in C++, because ISO C++11 does not allow conversion from string literal to char *. Signed-off-by: Piotr Sikora --- diff --git a/src/core/ngx_module.h b/src/core/ngx_module.h index cd28c4973..3e74def29 100644 --- a/src/core/ngx_module.h +++ b/src/core/ngx_module.h @@ -253,7 +253,7 @@ struct ngx_module_s { ngx_uint_t spare1; ngx_uint_t version; - char *signature; + const char *signature; void *ctx; ngx_command_t *commands;