0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

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.
This commit is contained in:
Hennadii Stepanov 2023-10-20 14:15:52 +01:00
parent fc1073bb45
commit 6bdff429ec
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

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>