From 09275fd549d083cd5a61143d176b65f9cffc1711 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 31 Jul 2025 16:03:28 +0200 Subject: [PATCH] BUILD: acme: avoid declaring TRACE_SOURCE in acme-t.h Files ending with '-t.h' are supposed to be used for structure definitions and could be included in the same file to check API definitions. This patch removes TRACE_SOURCE from acme-t.h to avoid conflicts with other TRACE_SOURCE definitions. --- include/haproxy/acme-t.h | 3 --- src/acme.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/haproxy/acme-t.h b/include/haproxy/acme-t.h index c37b5a220..c92c67642 100644 --- a/include/haproxy/acme-t.h +++ b/include/haproxy/acme-t.h @@ -94,7 +94,4 @@ struct acme_ctx { #define ACME_VERB_ADVANCED 4 #define ACME_VERB_COMPLETE 5 -#define TRACE_SOURCE &trace_acme - - #endif diff --git a/src/acme.c b/src/acme.c index 81452bf9b..7f1eb4fe3 100644 --- a/src/acme.c +++ b/src/acme.c @@ -36,6 +36,8 @@ #include #include +#define TRACE_SOURCE &trace_acme + #if defined(HAVE_ACME) static void acme_trace(enum trace_level level, uint64_t mask, const struct trace_source *src, -- 2.47.2