mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
alpine uses musl instead of glibc and therefore doesn't have backtrace() as part of its libc. POSIX mandates that _exit() be defined through unistd.h which used to be included together with execinfo.h when backtrace() was detected and therefore it happened to build fine for linux or freebsd (when using libexecinfo from the system or ports). since there was a macro already defined to test for unistd.h use that instead and decouple this dependency, so that the code could be built even when no backtrace() is provided (as expected also in OpenBSD)