aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Matuška <[email protected]>2024-05-29 19:51:01 +0200
committerGitHub <[email protected]>2024-05-29 10:51:01 -0700
commitae22044da998e27497c3ad6724a0c64c89cfd87f (patch)
tree80dc7e0bf57e1dc2f8b546c82f6c814e34efde1f /lib
parent01c8efdd59b540eb6ea21e339d2dbd0283095130 (diff)
spl: fix compilation without HAVE_BACKTRACE
The __maybe_unused macro is defined in spl/sys/debug.h Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Martin Matuska <[email protected]> Closes #16229
Diffstat (limited to 'lib')
-rw-r--r--lib/libspl/backtrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libspl/backtrace.c b/lib/libspl/backtrace.c
index dd8cb025f..d26d74210 100644
--- a/lib/libspl/backtrace.c
+++ b/lib/libspl/backtrace.c
@@ -110,6 +110,8 @@ libspl_backtrace(int fd)
backtrace_symbols_fd(btptrs, nptrs, fd);
}
#else
+#include <sys/debug.h>
+
void
libspl_backtrace(int fd __maybe_unused)
{