Skip to content

Commit

Permalink
Replace autoconf check with has_include and macro test
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Mar 25, 2024
1 parent 2102c97 commit 984555a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/util/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#ifndef BITCOIN_UTIL_TRACE_H
#define BITCOIN_UTIL_TRACE_H

#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#if __has_include(<sys/sdt.h>)
# include <sys/sdt.h>
# ifdef DTRACE_PROBE
# define ENABLE_TRACING
# endif
#endif

#ifdef ENABLE_TRACING
Expand Down

0 comments on commit 984555a

Please sign in to comment.