mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-19 12:42:42 +02:00
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.
This commit is contained in:
parent
124e32ad78
commit
f2629342b2
@ -70,4 +70,4 @@ OPTIONS_OBJS += \
|
||||
addons/ot/src/vars.o
|
||||
endif
|
||||
|
||||
OT_CFLAGS := $(OT_CFLAGS) -Iaddons/ot/include $(OT_DEFINE)
|
||||
OT_CFLAGS := $(OT_CFLAGS) $(OT_DEFINE)
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
/***
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
/***
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
#define FLT_OT_EVENT_DEF(a,b,c,d,e,f) { AN_##b##_##a, SMP_OPT_DIR_##b, SMP_VAL_FE_##c, SMP_VAL_BE_##d, e, f },
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
#define FLT_OT_GROUP_DEF(a,b,c) { a, b, c },
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_OT
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
static struct pool_head *pool_head_ot_span_context __read_mostly = NULL;
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_OT
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
/***
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
static struct pool_head *pool_head_ot_scope_span __read_mostly = NULL;
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_OT
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include "include.h"
|
||||
#include "../include/include.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_OT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user