From 0a0c1f6903217aa2bb59f82e11d2c136bca7b375 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Thu, 21 Nov 2024 17:11:10 -0500 Subject: [PATCH] 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)); | ^ --- src/ngx_otel_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngx_otel_module.cpp b/src/ngx_otel_module.cpp index e23ef5a..566376a 100644 --- a/src/ngx_otel_module.cpp +++ b/src/ngx_otel_module.cpp @@ -168,13 +168,13 @@ bool iremovePrefix(ngx_str_t* str, StrView p) MainConf* getMainConf(ngx_conf_t* cf) { return static_cast( - (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) { return static_cast( - (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)