build: Include config/bitcoin-config.h explicitly in util/trace.h

The `ENABLE_TRACING` macro is expected to be defined in the
`config/bitcoin-config.h` header.

Therefore, the current code is error-prone as it depends on whether the
`config/bitcoin-config.h` header was included before or not.

Github-Pull: #28693
Rebased-From: 6bdff429ec
This commit is contained in:
Hennadii Stepanov 2023-10-20 14:15:52 +01:00 committed by Luke Dashjr
parent 42af9596ce
commit b6e8101816

View File

@ -5,6 +5,10 @@
#ifndef BITCOIN_UTIL_TRACE_H
#define BITCOIN_UTIL_TRACE_H
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#ifdef ENABLE_TRACING
#include <sys/sdt.h>