meson: Let's check for libunwind.h

This is the header we use after all. And it
is also available on the MacOS*.SDK too.
This commit is contained in:
Bruno Lopes 2026-01-02 17:11:06 -03:00
parent bb56770ed6
commit 83459c6eb2

View file

@ -725,7 +725,7 @@ libunwind = ( get_option('libunwind')
? dependency('libunwind', version: '>=1.1.0', required: false)
: no_dep
)
have_unwind = libunwind.found() or cc.has_header('unwind.h', required: false)
have_unwind = libunwind.found() or cc.has_header('libunwind.h', required: false)
conf.set('HAVE_LIBUNWIND', have_unwind ? 1 : false)
## Check for backtrace() API