]> git.kaiwu.me - haproxy.git/commit
BUILD: ot: removed explicit include path when building opentracing filter
authorMiroslav Zagorac <mzagorac@haproxy.com>
Thu, 19 Jan 2023 08:50:56 +0000 (09:50 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Apr 2026 07:23:30 +0000 (09:23 +0200)
commitf2629342b22003994f62760c7a19ebf13b61e976
treecb1d0b80fdca2692d13ade98177fc403e7197e6f
parent124e32ad7852b407bc583268d6149a3246b8f99b
BUILD: ot: removed explicit include path when building opentracing filter

The -Iaddons/ot/include flag in OT_CFLAGS allowed source files to use a
bare #include "include.h", which was fragile because it depended on the
compiler search path.  Removed that flag from the Makefile and changed
every source file under addons/ot/src/ to use the relative include path
../include/include.h instead.  This made header resolution explicit and
consistent with standard addon conventions.
13 files changed:
addons/ot/Makefile
addons/ot/src/cli.c
addons/ot/src/conf.c
addons/ot/src/event.c
addons/ot/src/filter.c
addons/ot/src/group.c
addons/ot/src/http.c
addons/ot/src/opentracing.c
addons/ot/src/parser.c
addons/ot/src/pool.c
addons/ot/src/scope.c
addons/ot/src/util.c
addons/ot/src/vars.c