mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-12 21:00:36 +02: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:
parent
fc1073bb45
commit
6bdff429ec
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user