fix: support backtrace only on glibc systems

execinfo is glibc only, and prevents compiling on
other systems.
This commit is contained in:
sewn 2026-03-09 15:12:39 +03:00
parent 37d285dba1
commit bf5f416ba5
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
#include <assert.h>
//#include <system_service.h>
#include <codecvt>
#ifdef __linux__
#if defined(__linux__) && defined(__GLIBC__)
#include <signal.h>
#include <execinfo.h>
#include <unistd.h>
@ -574,7 +574,7 @@ int StartMinecraftThreadProc( void* lpParameter )
int main(int argc, const char *argv[] )
{
#ifdef __linux__
#if defined(__linux__) && defined(__GLIBC__)
struct sigaction sa;
sa.sa_handler = sigsegv_handler;
sigemptyset(&sa.sa_mask);