From 984555a743c2127a0556f591933ab57f46525c95 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 25 Mar 2024 19:29:44 +0000 Subject: [PATCH] Replace autoconf check with has_include and macro test --- src/util/trace.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/util/trace.h b/src/util/trace.h index b7c275f19b7f8..637dce593d8b9 100644 --- a/src/util/trace.h +++ b/src/util/trace.h @@ -5,8 +5,11 @@ #ifndef BITCOIN_UTIL_TRACE_H #define BITCOIN_UTIL_TRACE_H -#if defined(HAVE_CONFIG_H) -#include +#if __has_include() +# include +# ifdef DTRACE_PROBE +# define ENABLE_TRACING +# endif #endif #ifdef ENABLE_TRACING