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:
1 file changed
+4
@@ -5,6 +5,10 @@
|
|||||||
#ifndef BITCOIN_UTIL_TRACE_H
|
#ifndef BITCOIN_UTIL_TRACE_H
|
||||||
#define BITCOIN_UTIL_TRACE_H
|
#define BITCOIN_UTIL_TRACE_H
|
||||||
|
|
||||||
|
#if defined(HAVE_CONFIG_H)
|
||||||
|
#include <config/bitcoin-config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_TRACING
|
#ifdef ENABLE_TRACING
|
||||||
|
|
||||||
#include <sys/sdt.h>
|
#include <sys/sdt.h>
|
||||||
|
|||||||
Reference in new issue
Block a user