spl: fix compilation without HAVE_BACKTRACE

The __maybe_unused macro is defined in spl/sys/debug.h

Signed-off-by: Martin Matuska <mm@FreeBSD.org>
This commit is contained in:
Martin Matuska 2024-05-26 19:50:34 +02:00
parent 02c5aa9b09
commit 4206aadcdf
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{