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:
parent
fc1073bb45
commit
6bdff429ec
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue