From bf5f416ba503781993eef91bd622b725fbbb5a74 Mon Sep 17 00:00:00 2001 From: sewn Date: Mon, 9 Mar 2026 15:12:39 +0300 Subject: [PATCH] fix: support backtrace only on glibc systems execinfo is glibc only, and prevents compiling on other systems. --- Minecraft.Client/Platform/Linux/Linux_Minecraft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/Platform/Linux/Linux_Minecraft.cpp b/Minecraft.Client/Platform/Linux/Linux_Minecraft.cpp index bba4269c3..4ab22f581 100644 --- a/Minecraft.Client/Platform/Linux/Linux_Minecraft.cpp +++ b/Minecraft.Client/Platform/Linux/Linux_Minecraft.cpp @@ -6,7 +6,7 @@ #include //#include #include -#ifdef __linux__ +#if defined(__linux__) && defined(__GLIBC__) #include #include #include @@ -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);