Fix build.
There're two build errors happened after recent merges:
/wrkdirs/usr/ports/www/nginx-devel/work/nginx-otel-7f0d99f//src/ngx_otel_module.cpp:171:63: error: use of undeclared identifier 'gHttpModule'
171 | (MainConfBase*)ngx_http_conf_get_module_main_conf(cf, gHttpModule));
| ^
/wrkdirs/usr/ports/www/nginx-devel/work/nginx-otel-7f0d99f//src/ngx_otel_module.cpp:177:67: error: use of undeclared identifier 'gHttpModule'
177 | (MainConfBase*)ngx_http_cycle_get_module_main_conf(cycle, gHttpModule));
| ^
This commit is contained in:
parent
7f0d99fd72
commit
0a0c1f6903
1 changed files with 2 additions and 2 deletions
|
|
@ -168,13 +168,13 @@ bool iremovePrefix(ngx_str_t* str, StrView p)
|
||||||
MainConf* getMainConf(ngx_conf_t* cf)
|
MainConf* getMainConf(ngx_conf_t* cf)
|
||||||
{
|
{
|
||||||
return static_cast<MainConf*>(
|
return static_cast<MainConf*>(
|
||||||
(MainConfBase*)ngx_http_conf_get_module_main_conf(cf, gHttpModule));
|
(MainConfBase*)ngx_http_conf_get_module_main_conf(cf, ngx_otel_module));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainConf* getMainConf(ngx_cycle_t* cycle)
|
MainConf* getMainConf(ngx_cycle_t* cycle)
|
||||||
{
|
{
|
||||||
return static_cast<MainConf*>(
|
return static_cast<MainConf*>(
|
||||||
(MainConfBase*)ngx_http_cycle_get_module_main_conf(cycle, gHttpModule));
|
(MainConfBase*)ngx_http_cycle_get_module_main_conf(cycle, ngx_otel_module));
|
||||||
}
|
}
|
||||||
|
|
||||||
LocationConf* getLocationConf(ngx_http_request_t* r)
|
LocationConf* getLocationConf(ngx_http_request_t* r)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue