From 37d285dba1d5492fad3f5183f23f1fa05aaf7721 Mon Sep 17 00:00:00 2001 From: sewn Date: Mon, 9 Mar 2026 15:08:59 +0300 Subject: [PATCH 1/2] fix: compile ConsoleSaveFileSplit for standard C++ --- Minecraft.World/IO/Files/ConsoleSaveFileSplit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.World/IO/Files/ConsoleSaveFileSplit.h b/Minecraft.World/IO/Files/ConsoleSaveFileSplit.h index a05535d6c..afb9eecad 100644 --- a/Minecraft.World/IO/Files/ConsoleSaveFileSplit.h +++ b/Minecraft.World/IO/Files/ConsoleSaveFileSplit.h @@ -28,7 +28,7 @@ private: public: int64_t lastWritten; unsigned int fileRef; - bool operator<(const DirtyRegionFile& rhs) { return lastWritten < rhs.lastWritten; } + bool operator<(const DirtyRegionFile& rhs) const { return lastWritten < rhs.lastWritten; } }; class RegionFileReference @@ -140,4 +140,4 @@ public: virtual void ConvertRegionFile(File sourceFile); virtual void ConvertToLocalPlatform(); -}; \ No newline at end of file +}; From bf5f416ba503781993eef91bd622b725fbbb5a74 Mon Sep 17 00:00:00 2001 From: sewn Date: Mon, 9 Mar 2026 15:12:39 +0300 Subject: [PATCH 2/2] 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);